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

Joachim Breitner mail at joachim-breitner.de
Wed Mar 31 04:43:26 EDT 2010


Hi,

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).

Am Mittwoch, den 31.03.2010, 01:32 -0400 schrieb wagnerdm at seas.upenn.edu:
> 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.

but this leads to the question: Why can I not compare or diff ZonedTime?

Greetings,
Joachim

-- 
Joachim "nomeata" Breitner
  mail: mail at joachim-breitner.de | ICQ# 74513189 | GPG-Key: 4743206C
  JID: nomeata at joachim-breitner.de | http://www.joachim-breitner.de/
  Debian Developer: nomeata at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20100331/8c8399f4/attachment.bin


More information about the Haskell-Cafe mailing list