in reply to Re: Getting previous dates from the current date
in thread Getting previous dates from the current date
This should work
But it won't do all the time: you've fallen for the apparently common trap of assuming that days have 24 hours in them, then using localtime.
More generally, you've fallen for the trap of trying to write this stuff yourself rather than trusting the DateTime geniouses to have got it right for you, so that you don't need to think about such awkwardnesses.
Smylers
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Getting previous dates from the current date
by tcf03 (Deacon) on Mar 29, 2005 at 18:23 UTC |