[Haskell-cafe] why doesn't time allow diff of localtimes ?
briand at aracnet.com
briand at aracnet.com
Wed Mar 31 22:29:31 EDT 2010
On Wed, 31 Mar 2010 01:32:56 -0400
wagnerdm at seas.upenn.edu wrote:
> 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.
that makes sense. unfortunately getting the current timezone to
convert to UTC results in the dreaded IO contamination problem...
Brian
More information about the Haskell-Cafe
mailing list