ZVON > References > Haskell reference |
Intro / Search / ZVON |
| Indexes | Syntax | Prelude | Ratio | Complex | Numeric | Ix | Array | List | Maybe | Char | Monad | IO | Directory | System | >> Time << | Locale | CPUTime | Random |
Module: | Time |
---|---|
Function: | toUTCTime |
Type: | ClockTime -> CalendarTime |
Description: | toUTCTime t converts t into a CalendarTime in standard UTC format |
Related: |
Program source: import Time main = do t <- getClockTime print (toUTCTime t)
Output: CalendarTime{ctYear=2002,ctMonth=March,ctDay=25,ctHour=13,ctMin=9,ctSec=50,ctPicoSec=0,ctWDay=Monday,ctYDay=83,ctTZName="",ctTZ=0,ctIsDST=False}