now() -> now_to_tz
Pierpaolo BERNARDI
bernardp@REDACTED
Fri Feb 28 08:04:50 CET 2003
From: "Per Hedeland" <per@REDACTED>
> >now_to_local_time_tz({Mega,Sec,Micro},TZ) ->
> > calendar:now_to_datetime({Mega,Sec+TZ*3600,Micro}).
>
> Oh - if you assume that the TZ variable directly specifies a fixed
> number of hours of offset from UTC/GMT (or local time), the problem is
> indeed trivial, but... - quick now, when does Calcutta switch to
> Daylight Savings Time?:-)
Ehm, how many days I have to reply? 8-)
OK, point taken. I knew I was missing something.
P.
More information about the erlang-questions
mailing list