-import LibTime
+import Time
main =
getClockTime >>= \ time ->
- putText time >>
- putChar '\n' >>
+ print time >>
let (CalendarTime year month mday hour min sec psec
wday yday timezone gmtoff isdst) = toUTCTime time
shows2 x = showString (pad2 x)
pad2 x = case show x of
c@[_] -> '0' : c
- cs -> cs
\ No newline at end of file
+ cs -> cs