[project @ 1996-01-08 20:28:12 by partain]
[ghc-hetmet.git] / ghc / misc / examples / io / io020 / Main.hs
1 import LibTime
2
3 main = 
4     getClockTime >>= \ time ->
5     let (CalendarTime year month mday hour min sec psec 
6                       wday yday timezone gmtoff isdst) = toUTCTime time
7         time' = toClockTime (CalendarTime (year - 1) month mday hour min sec psec
8                              wday yday timezone gmtoff isdst)
9     in
10         putText time >>
11         putChar '\n' >>
12         putText time' >> 
13         putChar '\n'