
1 May
2007
1 May
'07
2 p.m.
On 4/26/07, Martin Percossi
In System.Time,
data ClockTime = TOD Integer Integer
, where the first integer represents the number of seconds since epoch, and the other represents the number of picoseconds. Is there a way of retrieving the first part? (In Haskell 98, the ClockTime type is abstract).
I usually pattern match the constructor: do { TOD epoch _ <- getClockTime ; putStrLn $ "epoch is " ++ show epoch } -- Rich AIM : rnezzy ICQ : 174908475 Jabber: rich@neswold.homeunix.net