[Haskell-cafe] why doesn't time allow diff of localtimes ?

wagnerdm at seas.upenn.edu wagnerdm at seas.upenn.edu
Wed Mar 31 01:32:56 EDT 2010

Two values of LocalTime may well be computed with respect to different  
timezones, which makes the operation you ask for dangerous. First  
convert to UTCTime (with localTimeToUTC), then compare.


Quoting briand at aracnet.com:

> which is a variation of the question, why can't I compare localtimes ?
> or am I missing something in Time (yet again).
> Thanks,
> Brian

More information about the Haskell-Cafe mailing list