On Thu, Dec 8, 2011 at 9:13 AM, Antoine Latter <[email protected]> wrote:
> On Thu, Dec 8, 2011 at 9:01 AM, dokondr <[email protected]> wrote:
>> Now, when I have managed to convert UTCTime to seconds (see code below) I
>> got stuck trying to convert from UTCTime to CalendarTime, how to do this?
>>
>>
>
> It might be easier to use 'diffUTCTime' and 'addUTCTime' instead of
> converting to and from POSIX seconds.
>

For those reading along at home, 'addUTCTime' and 'diffUTCTime' are
implemented in terms of 'posixSecondsToUTCTime' and
'utcTimeToPOSIXSeconds'. So it's pretty similar in the end.

Antoine

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to