in reply to Time zones

Actually, GMT and US Eastern Standard Time (I assume that's the EST you mean, given that you mention adding 5 hours) *are* always 5 hours apart. What differs is that dates on which the respective places switch between GMT/BST and EST/EDT.</pedant>

Replies are listed 'Best First'.
Re^2: Time zones
by Anonymous Monk on Sep 28, 2004 at 13:44 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.