
4 Feb
2005
4 Feb
'05
6:37 a.m.
The most basic or at least the most obvious function in a time library is one that gets the current time. What is its return type? getCurrentTime :: IO ??? There seems to be consensus that it should be some kind of encoding of UTC rather than TAI. If you don't mind the hiccups, POSIX time is the simplest way to (mostly) encode UTC. The simplest _correct_ way is a (days,ticks) pair. A third alternative would be broken-down Calendar time, with year, month, day etc. What's the best choice for getCurrentTime? -- Ashley Yakeley, Seattle WA