in reply to Re: How to substract date in perl?
in thread How to substract date in perl?

However, that will give the wrong date about 6 hours a year. You didn't take into account that two days a year, the day isn't 24 * 3600 seconds, but either 25 * 3600 or 23 * 3600 seconds. That means for the 3 days after daylight switch over, you're be wrong either the hour before midnight, or the hour after.

Abigail

Replies are listed 'Best First'.
Re: Re: How to substract date in perl?
by caedes (Pilgrim) on Feb 26, 2003 at 09:45 UTC
    Ah ha :-) But that would only happen if one was to do something crazy like daylight savings time now wouldn't it? =)

    Daylight savings is the exception and not the rule. I could just as easily declare time to reverse during a full moon, but I'm not going to add that functionality to my program at this time. =P

    I can almost always rely on someone to think of an aspect of a problem that had not occured to me at first. I guess that's one of the really valuable parts of the monastery.

    -caedes

      Well, this issue is is discussed in perlfaq4.pod....

      Abigail