bugs in Time.hs

Glynn Clements glynn.clements@virgin.net
Wed, 27 Aug 2003 02:55:45 +0100


Ross Paterson wrote:

> > 4. There seem to be problems with dates before year 1970.
> 
> That sounds like a Posix problem.

That sounds like a signed-ness problem. The underlying C functions
should handle dates prior to the epoch (those corresponding to a
negative time_t value).

For a 32-bit time_t, the range of valid times is (in UTC):

 Seconds	YYYY-MM-DD hh:mm:ss

-2147483648	1901-12-13 20:45:52
 2147483647	2038-01-19 03:14:07

-- 
Glynn Clements <glynn.clements@virgin.net>