[erlang-questions] odd now() behaviour
Kenneth Lundin
kenneth.lundin@REDACTED
Tue Aug 11 07:52:19 CEST 2009
Yes this is expected behavior.
See the +c option to the erl command for an explanation on how erlang:now works.
http://www.erlang.org/doc/man/erl.html
/Kenneth Erlang/OTP Ericsson
On Tue, Aug 11, 2009 at 7:30 AM, Amit Murthy<amit.murthy@REDACTED> wrote:
> Hi,
>
> I am seeing an odd behavior with now() on my laptop running ubuntu 8.04 with
> R13A.
>
> I had a running erlang shell when I closed the laptop, and the machine went
> into suspend mode. The next day when the laptop came out of suspend mode, on
> the
> erlang shell,
>
> calendar:local_time(). returned the correct date/time while
>
> calendar:now_to_local_time(now()). printed out the time which was behind
> by the same amount of time as the laptop was suspended.
>
> Is this a bug or the expected behaviour of now()?
>
> Regards,
> Amit
>
More information about the erlang-questions
mailing list