On Wed, 2010-03-31 at 19:29 -0700, bri...@aracnet.com wrote:
> On Wed, 31 Mar 2010 01:32:56 -0400
> wagne...@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

Hmm. Where do you get the local times from in the first place?

Regards

PS. As the timezone can change in runtime (like change from summer time
to standard or simply crossing the 'border' with laptop) I don't think
that there is escape from IO.

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to