[Haskell-cafe] Adding to / subtracting from a LocalTime?

Adde Nilsson trialcodr at gmail.com
Sun Aug 19 01:14:30 CEST 2012


Didn't know, thanks.
Back in Haskell land my conclusion is that if you're planning on doing pure
date calculations you have to pass a TimeZone as well.

/Adde

On Sun, Aug 19, 2012 at 12:11 AM, Brandon Allbery <allbery.b at gmail.com>wrote:

> On Sat, Aug 18, 2012 at 6:05 PM, Adde Nilsson <trialcodr at gmail.com> wrote:
>
>> Ok, do you know of any way to add/subtract without converting to UTC and
>> back?
>
>
> I'm not sure I'd do that in any environment, since usually libraries don't
> deal with the result crossing a daylight/summer time change (and those that
> do, surprise surprise, normalize to UTC).
>
> --
> brandon s allbery                                      allbery.b at gmail.com
> wandering unix systems administrator (available)     (412) 475-9364 vm/sms
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120819/f1ece4c8/attachment.htm>


More information about the Haskell-Cafe mailing list