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:
parent
48b5c167bf
commit
fe2f1605f1
|
@ -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;
|
||||
|
|
|
@ -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? */
|
||||
|
|
Loading…
Reference in New Issue