Update from y2038
authorMichael G. Schwern <schwern@pobox.com>
Sat, 27 Sep 2008 19:43:22 +0000 (15:43 -0400)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Sat, 3 Jan 2009 17:38:37 +0000 (18:38 +0100)
commit750c447b413e71e62138b603e69a4ffe7ba754b2
treea73558014ec3947ce0f9aae34d60051fd478db36
parentb9020a0ae3b98b01aa1548eafc93f1236bf49165
Update from y2038

Fix a bug in the code to use the system gmtime, it was using localtime.

Define a Year type to avoid mixing years and ints unintentionally.

Do some explicit casting to prop up compilers that don't understand
X % Y can never be larger than Y.
localtime64.c
localtime64.h