in reply to Re^5: Time zones
in thread Time zones

and I didn't explain myself corrently. When I said it would only affect "perl and it's children", I was refering to any given perl process. In your terminology, it will only affect your script if you only put it in your script. And if you use local, it will only affect a small region of the script, as demonstrated by the example I posted. Enjoy!

Replies are listed 'Best First'.
Re^7: Time zones
by Anonymous Monk on Sep 27, 2004 at 21:08 UTC
    I cut and pasted your code but got the same times for al the prints. Am I missing something?
      Setting TZ doesn't seem to work in Windows. Are you using Windows?
        Crap. Yes I am. I guess I should have mentioned that. Do you have any other ideas?