changed: core/misc: date format in Time() methods

git-svn-id: svn://ttmath.org/publicrep/winix/trunk@783 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
Tomasz Sowa 2011-12-14 20:35:19 +00:00
parent 48b5c167bf
commit fe2f1605f1
2 changed files with 4 additions and 0 deletions

View File

@ -980,6 +980,8 @@ tm Time(time_t par)
res.tm_hour = ptm->tm_hour;
res.tm_min = ptm->tm_min;
res.tm_sec = ptm->tm_sec;
res.tm_wday = ptm->tm_wday;
res.tm_yday = ptm->tm_yday;
}
return res;

View File

@ -312,6 +312,8 @@ tm t;
t.tm_min = Toi(str + 14); /* minutes (0 - 59) */
t.tm_sec = Toi(str + 17); /* seconds (0 - 60) */
t = Time(Time(t));
// t.tm_wday = 0; /* day of week (Sunday = 0) */
// t.tm_yday = 0; /* day of year (0 - 365) */
// t.tm_isdst = 0; /* is summer time in effect? */