[erlang-questions] calendar:local_time_to_universal_time_dst/1 - what this is for?

Kenji Rikitake kenji.rikitake@REDACTED
Mon Sep 15 15:16:18 CEST 2008


In the message <20080915130827.GA36451@REDACTED>
dated Mon, Sep 15, 2008 at 10:08:04PM +0900,
Kenji Rikitake <kenji.rikitake@REDACTED> writes:
> So the following four cases may actually happen for
> calendar:local_time_to_universal_time_dst/1 results:

My mistakes.  The correct one: 

1) UTC Ut is local DST DateTime
   (when in DST)
   returning [DateTimeUTC] ([UtDst])

2) UTC UtDst is local non-DST DateTime
   (when in non-DST)
   returning [DateTimeUTC] ([Ut])
 
> 3) UTC UtDst is local DST DateTime
>    or
>    UTC Ut is local non-DST DateTime
>    (when switching from DST to non-DST)
>    returning [DstDateTimeUTC, DateTimeUTC] ([UtDst, Ut])
> 
> 4) no UTC mapping for a local DST DateTime
>    (when switching from non-DST to DST)
>    returning []

Regards,
Kenji Rikitake



More information about the erlang-questions mailing list