Convert struct tm to time_t in one function
commit9c4909dadc12d1689d1703df4a0384a9cca76171
authorPetr Písař <petr.pisar@atlas.cz>
Sun, 16 Jan 2011 16:48:44 +0000 (16 17:48 +0100)
committerPetr Písař <petr.pisar@atlas.cz>
Wed, 19 Jan 2011 18:58:35 +0000 (19 19:58 +0100)
tree39b28fced8bb9d5550c8331793c8f4b579e5be0d
parent4fd12d4995c4fff788cfb7e68297380aad659912
Convert struct tm to time_t in one function

All the helpers are used in utils.c only, and thus they are not exported
anymore.

Next step is to implement the mktime()-alike conversion (as non-standard
timegm(3) does) to get rid of non-thread-safe TZ variable switching. Also it
will remove one PANIC() usage making this library more reliable. The only
question is leap second. POSIX mandates no leap seconds. Non-conforming system
will loose few seconds.
src/isds.c
src/utils.c
src/utils.h