removed: dependencies to 'tz' system structure

now we are using PT::Date from pikotools



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@839 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2012-05-26 23:04:49 +00:00
parent 5b845f1d03
commit 1b858f5782
41 changed files with 651 additions and 764 deletions

View File

@@ -870,6 +870,7 @@ return status;
}
// !! IMPROVE ME will be removed or changed
time_t System::LocalTime(time_t gmt_time)
{
int time_offset;
@@ -883,24 +884,18 @@ return gmt_time + (time_t)time_offset;
}
tm System::LocalTime(const tm * ptm)
// !! IMPROVE ME will be removed or changed
PT::Date System::LocalTime(const PT::Date & date)
{
time_t t;
tm rtm;
t = Time(ptm);
t = date.ToTime();
t = LocalTime(t);
rtm = Time(t);
return rtm;
return PT::Date(t);
}
tm System::LocalTime(const tm & ptm)
{
return LocalTime(&ptm);
}
/*