time since the epoch

Glynn Clements glynn.clements@virgin.net
Sat, 8 Feb 2003 00:53:40 +0000


Matthew Donadio wrote:

> Pretty much the whole world runs on UTC.  All of the common time
> distribution systems use UTC.  Technically, GPS doesn't, but the GPS
> signal includes the correction to UTC.  I understand the argument for
> using TAI.  Maybe internally the libray should use TAI, but default to
> giving the user UTC?

I'd argue that the most important factor is compatibility with the
rest of the OS. If the underlying OS doesn't support leap seconds,
then nor should the Haskell environment.

IOW, the Haskell functions need to be wrappers around the
corresponding libc functions (or their Windows equivalents). I.e.:

	Haskell			C

	getClockTime		gettimeofday
	toCalendarTime		localtime
	toUTCTime		gmtime
	toClockTime		mktime

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