[erlang-bugs] localtime_to_universaltime(DistantFuture)

Ulf Wiger (TN/EAB) ulf.wiger@REDACTED
Wed Sep 13 14:31:11 CEST 2006


1> erlang:localtime_to_universaltime({{2038,1,19},{3,14,7}},true).
{{2038,1,19},{1,14,7}}
2> erlang:localtime_to_universaltime({{2038,1,19},{3,14,8}},true).
{{1969,12,31},{23,59,59}}
3> erlang:localtime_to_universaltime({{2060,1,1},{12,0,0}},true).  
{{1969,12,31},{23,59,59}}
4> os:getenv("TZ").
"MET"

It would seem as if the future for Erlang ends at 
3:14:7 MET, Jan 19 2038.

BR,
Ulf W

(Courtesy Johan Tjäder who's been having fun with QuickCheck)




More information about the erlang-bugs mailing list