[Haskell-cafe] Getting the number of seconds since epoch from System.Time.ClockTime

Martin Percossi haskell-cafe at martinpercossi.com
Thu Apr 26 10:19:30 EDT 2007

Hello haskell-cafe,

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).


My music: http://www.youtube.com/profile?user=thetonegrove

More information about the Haskell-Cafe mailing list