I am trying to write a script where i want to convert any timezone to UTC
and reverse.
But from some where i came to know that while converting any timezone to UTC
with or without DST consideration it will give the same UTC
time.
For example:
If i try to convert this one:
$mytime = '2011-03-31 05:06:00.000';
$myzone = 'America/New_York';
to UTC with DST and without DST,i will get ..
(New_York->UTC DST=Yes)2011-03-31 09:06:00
(New_York->UTC DST=No)2011-03-31 09:06:00 ..........
Is this corect ??If yes then why???
Please anybody give me your answers.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…