diff options
author | Daniel Stenberg <daniel@haxx.se> | 2008-09-23 11:00:01 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2008-09-23 11:00:01 +0000 |
commit | d369a2b7755d763490575fc18de748def0b3ba77 (patch) | |
tree | 7eebd3b352f91fae13a982ac8f30e9a9cceee11e /CHANGES | |
parent | a5f4cfc6126b5e6085d3972a00f37409de65ad11 (diff) |
- Introducing Jamie Lokier's function for date to epoch conversion used in the
date parser function. This makes our function less dependent on system-
provided functions and instead we do all the magic ourselves. We also no
longer depend on the TZ environment variable.
Diffstat (limited to 'CHANGES')
-rw-r--r-- | CHANGES | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -7,6 +7,25 @@ Changelog Daniel Stenberg (23 Sep 2008) +- Introducing Jamie Lokier's function for date to epoch conversion used in the + date parser function. This makes our function less dependent on system- + provided functions and instead we do all the magic ourselves. We also no + longer depend on the TZ environment variable. Switching to our own converter + has some side-effect and they are noted here for future reference (taken + from a mail by mr Lokier): + + time_t is not measured in seconds in the ANSI C standard - or even counted + uniformly - weird platforms can use other numeric representations of dates + in time_t - hence the difftime() function. + + On POSIX time_t is measured in UTC seconds, which means not including leap + seconds. But it's mentioned in a few places that some old POSIX-ish + environments include leap seconds in their time_t counts... + + I'm pretty sure [the new implementation is] correct on anything truly POSIX. + And it's obviously a lot less dependent on platform quirks and corner cases + in many ways than the mktime() version. + - Rob Crittenden brought a patch to "add some locking for thread-safety to NSS implementation". |