Hi everyone.<br>When I using erlang:localtime_to_universaltime/2 , I have some doubt.<br>My time zone is GMT + 8, asia/shanghai(china).<br>this segment is printed out from my erl:<br><br>> lists:map(fun(I) -> erlang:localtime_to_universaltime(I, true) end, [<br>
{{1977, 7, 10}, {10, 20, 03}}, <br>{{1978, 7, 10}, {10, 20, 03}}, <br>{{1997, 7, 10}, {10, 20, 03}}, <br>{{1999, 7, 10}, {10, 20, 3}}, <br>{{2000, 7, 10}, {10, 20, 3}}, <br>{{2008, 5, 9}, {10, 20, 03}}]).<br><br>[{{1977,7,10},{2,20,3}},<br>
{{1978,7,10},{1,20,3}},<br> {{1997,7,10},{1,20,3}},<br> {{1999,7,10},{1,20,3}},<br> {{2000,7,10},{2,20,3}},<br> {{2008,5,9},{2,20,3}}]<br><br><br><br>I find from 1978 to 1999 the DST is active, other not.<br>I can't understand why have this phenomenon. everyone can give me an answer?<br>
thanks!<br><br><br clear="all"><br>-- <br>成立涛 <br>---------------------------------------------------------<br>让我异想天开<br>让我沉醉不醒