in reply to RE: RE: RE: RE: RE: RE: Timezones in Perl
in thread Timezones in Perl

Your example works fine if you want to add or subtract hours from the current local time. However, the date the original question is not accessible from the time call. It must be parsed, converted to an apropriate timestamp value and de-timezoned before you can start using localtime or gmtime to manipulate it. And what if the output format the person wants isn't what gmtime or localtime produces? It must then be manipulated again into the proper format. All these functions are provided for you by the Date and Time modules.
  • Comment on RE: RE: RE: RE: RE: RE: RE: Timezones in Perl

Replies are listed 'Best First'.
RE: RE: RE: RE: RE: RE: RE: RE: Timezones in Perl
by Shendal (Hermit) on Jun 23, 2000 at 01:16 UTC
    Oh. *Smacks forehead* Now I'm with you. I need to read posts more closely. I understand why you'd want to use Date::Manip.

    Good discussion!