in reply to Timezones in Perl

Date::Manip is the granddaddy of all Date/Time manipulation modules. It has a several timezone related functions (Date_ConvTZ, ConvTZ, etc..) that allows you to convert dates/times from one timezone to another without needs for setting any environmental variables.

Replies are listed 'Best First'.
RE: RE: Timezones in Perl
by Shendal (Hermit) on Jun 22, 2000 at 23:44 UTC
    I suppose you could use Date::Manip, but, by the module author's own comments, "It's big and slow." If all you want is to convert time zones, I think it's easy to write your own, your performance wouldn't suffer, and you wouldn't have to worry about weather or not Date::Manip is installed.
      Of course, if you do write your own code you will be spending time to re-implement something that someone has already written. If the overhead of calling a "slow" module like Date::Manip is too much for you, then Perl is probably too slow and inefficient for you; you should use a compiled language like C. Also Date::Manip (and all other perl modules) has been used by thousands of perl programmers, so the code is well tested and proven to be reliable, stable and relatively bug-free.
        Good points. I would still encourage writing your own routine, if all you need is different timezones -- it would be trivial. I know that I have to work on many varying machines all over, and the more modules I have to worry about installing the more of a headache it becomes (especially when you're talking about hundreds of NT clients).

        FWIW, I haven't noticed this package being "slow"... I'm merely pointing out that the author seems to think so.