[Haskell-cafe] formatTime doesn't work with local time ??

Brian Denheyer briand at aracnet.com
Wed Jan 20 10:15:07 EST 2010


My error:

    Couldn't match expected type `T.UTCTime'
           against inferred type `T.LocalTime'
    In the second argument of `formatTime', namely `date'
    In the expression: formatTime "%Y/%m/%e %k:%M:%S" date
 

But the docs have LocalTime listed as one of the FormatTime instances:

Instances
FormatTime Day
FormatTime UTCTime
FormatTime TimeZone
FormatTime TimeOfDay
FormatTime ZonedTime
FormatTime LocalTime


 ?


Brian


More information about the Haskell-Cafe mailing list