in reply to Re: Getting previous dates from the current date
in thread Getting previous dates from the current date
You are right. This code does not account for dst. Using the same code and adding 10 days (which we change the clocks next weekend), it will output 10 days and 1 hour.
To counter act this, determining the first weekend and april and last weekend in october will allow a user to adjust for this. Or you can use a module.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Getting previous dates from the current date
by Smylers (Pilgrim) on Mar 30, 2005 at 08:42 UTC |
In Section
Seekers of Perl Wisdom