[Haskell-beginners] Re: Help with Data.Time

Tim Attwood timothyea at comcast.net
Fri Oct 2 00:36:03 EDT 2009


> Prelude Data.Time System.Locale> parseTime defaultTimeLocale "%R%P" 
> "09:30AM" ::
> MaybeUTCTime
> Just 1970-01-01 09:30:00 UTC

Prelude Data.Time System.Locale> parseTime defaultTimeLocale "%R%P" 
"09:30AM" ::
Maybe UTCTime
Nothing

I suspect the parser malfunction is an issue with POSIX and Windows.
1970-01-01 00:00 UTC is the POSIX zero time...




More information about the Beginners mailing list