in reply to Windows, Time::Local and dates before the epoch

You might try updating your Time::Local (there is a new version in CPAN).

A better alternative would be to use DateTime instead. If you can't install DateTime, you can use Date::ICal. Both modules work with dates before 1970.

  • Comment on Re: Windows, Time::Local and dates before the epoch

Replies are listed 'Best First'.
Re: Re: Windows, Time::Local and dates before the epoch
by barbie (Deacon) on Jun 11, 2003 at 15:10 UTC
    Might be better to explain a little more about the module I'm writing.

    Calendar::List provides a list, hash or HTML code snippet of a set of dates. Underneath the hood is another module Calendar::Functions which uses one of DateTime, Date::ICal or Time::Local to do the date manipulation, depending which is installed.

    So, as I don't know what is going to be on the user's machine, and the latest version of Time::Local on CPAN has exactly the same problem, I'm looking for something a bit easier to implement.

    Note the problem is ONLY in the test suite. Outside of the test suite it's fine. The warning messages don't appear.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Barbie
    Birmingham Perl Mongers
    Web Site: http://birmingham.pm.org/
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~