in reply to Re: Time zones
in thread Time zones

Yes that is correct. There is always a 5 hour difference between GMT and EST and between BST and EDT. That does't help when GMT switches to BST a week before EST switches to EDT. That's exactly why I can't hard code +5 hours. The link below show the dates that DST start and end in NY and LDN.

http://www.timeanddate.com/worldclock/city.html?n=179
http://www.timeanddate.com/worldclock/city.html?n=136

Replies are listed 'Best First'.
Re^3: Time zones
by DrHyde (Prior) on Sep 28, 2004 at 16:46 UTC
    If you care about the time difference between two places, then ask for that. Instead, you asked:

    If I'm using a machine that is on GMT time, how can I convert that time to EST using a standard Perl 5.6.1 installation?

    And the answer is "subtract five hours". Always.

      And like I just posted above, I know there is always a 5 hour difference.

      I also mentioned in my OP "I can't simply add 5 hours to GMT time because daylight savings time isn't always the same between zones.". Please don't quote me selectively.

      A reply falls below the community's threshold of quality. You may see it by logging in.