Algorithm to exploit 32 bit time functions to do time zone calculations
Michael G Schwern <[email protected]> Mon, 15 Sep 2008 20:57:50 -0700
| Newsgroups | gmane.comp.lib.libtai |
|---|---|
| Message-ID | <[email protected]> |
Hi, I'm writing to you in reference to your libtai library whose TODO file states that "support time zones" is still todo. I had originally considered using libtai in Perl to avoid the Unix 2038 bug, but Perl requires time zone support. Instead, I am rewriting the time.h library functions to be 2038-clean. The effort is located here. http://code.google.com/p/y2038/ The piece which is of interest to libtai is this: http://code.google.com/p/y2038/wiki/HowItWorks I have figured out a way to make use of 32 bit system functions to do 64 bit time zone and daylight savings calculations. I thought you might be able to apply this to libtai. Thanks, Schwern PS Any potential license issues I'm happy to work out. -- Stabbing you in the face so you don't have to.