Type for Current Time Function

Scott Turner p.turner at computer.org
Fri Feb 4 09:45:04 EST 2005

On 2005 February 04 Friday 07:03, Bayley, Alistair wrote:
> > From: Ashley Yakeley [mailto:ashley at semantic.org]
> >   getCurrentTime :: IO ???
> It looks as though POSIX should be avoided, so I vote for (days, ticks).

That would be fine, for starters.  In addition, since the choice is based on 
the inadequacies of POSIX time, there should be an alternative which returns 
the raw POSIX time.  

Right now on my computer, the relationship between POSIX time and UTC is 
simple. A few years from now, when NTP is revised to provide access to TIA 
offsets, I hope that getCurrentTime will yield steady results during leap 
seconds. POSIX time will continue to be supported and will still be used for 
file system timestamps. So there's a need for a distinct data type for POSIX 
time, which would be used by file utilities, and for a
   getCurrentFileSysTime :: IO FileSysTime

More information about the Libraries mailing list