bug in inets or erlang!
Raimo Niskanen
raimo@REDACTED
Wed Nov 30 11:44:27 CET 2005
It also says:
Failure: badarg if Date1 or Time1 do not denote a valid
date or time.
Unfortunately it does not say what is a valid date or time.
bengt.kleberg@REDACTED (Bengt Kleberg) writes:
> On 2005-11-30 10:20, Matthias Lang wrote:
>
> > Making universaltime_to_localtime work for all possible dates in the
> > past and future is nontrivial.
>
> making universaltime_to_localtime work according to the documentation
> is almost trivial. it says:
>
> ''Converts Universal Time Coordinated (UTC) date and time to local
> date and time, if this is supported by the underlying
> OS. Other-
> wise, no conversion is done, and {Date1, Time1} is
> returned.''
>
>
> i.e. if the conversion fails, just return the input.
>
>
> bengt
--
/ Raimo Niskanen, Erlang/OTP, Ericsson AB
More information about the erlang-questions
mailing list