1 module Main(main) where
14 ctPicosec = 123123123123,
22 pClock :: ClockTime -> IO()
25 putStr(calendarTimeToString(toUTCTime c))
28 getDiff :: TimeAddable a => ClockTime -> a
29 getDiff now = diffClock now start
31 printSum :: TimeAddable a => a -> IO ()
34 sum = addClock start diff
40 -- now <- getClockTime
41 -- now fixed so we get reliable output (SDM)
42 let now = TOD 944662832 34398000000
47 putStr "Whole Picos\n"
48 printSum((getDiff now)::DiffPico)
49 putStr "Whole Seconds\n"
50 printSum((getDiff now)::DiffPico)
51 putStr "Whole Minutes\n"
52 printSum((getDiff now)::DiffMinute)
53 putStr "Whole Hours\n"
54 printSum((getDiff now)::DiffHour)
56 printSum((getDiff now)::DiffDay)
57 putStr "Whole Months\n"
58 printSum((getDiff now)::DiffMonth)
59 putStr "Whole Years\n"
60 printSum((getDiff now)::DiffYear)