
8 Dec
2011
8 Dec
'11
10:17 a.m.
On Thu, Dec 8, 2011 at 9:13 AM, Antoine Latter
On Thu, Dec 8, 2011 at 9:01 AM, dokondr
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