summaryrefslogtreecommitdiff
path: root/src/time/mktime.c
AgeCommit message (Collapse)AuthorLines
2015-08-14match historical behavior for tm_gmtoff member of struct tmNatanael Copa-3/+3
tm_gmtoff is a nonstandard field, but on historical systems which have this field, it stores the offset of the local time zone from GMT or UTC. this is the opposite of the POSIX extern long timezone object and the offsets used in POSIX-form TZ strings, which represent the offset from local time to UTC. previously we were storing these negated offsets in tm_gmtoff too. programs which only used this field indirectly via strftime were not affected since strftime performed the negation for presentation. however, some programs and libraries accesse tm_gmtoff directly and were obtaining negated time zone offsets.
2013-12-12include cleanups: remove unused headers and add feature test macrosSzabolcs Nagy-2/+0
2013-07-17fix error code on time conversion overflowsRich Felker-1/+1
POSIX mandates EOVERFLOW for this condition.
2013-07-17the big time handling overhaulRich Felker-15/+21
this commit has two major user-visible parts: zoneinfo-format time zones are now supported, and overflow handling is intended to be complete in the sense that all functions return a correct result if and only if the result fits in the destination type, and otherwise return an error. also, some noticable bugs in the way DST detection and normalization worked have been fixed, and performance may be better than before, but it has not been tested.
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker-0/+24