in reply to Re: Date Manipulation
in thread Date Manipulation
The DST-safe algorithm I use for calculating the daydate of yesterday or other relative date descriptions is to add/subtract 22 hours from the current gmtime() or localtime() until the date or day of week changes - this is a much simpler (and easier to debug) loop than maintaining any carry.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Date Manipulation
by swampyankee (Parson) on Dec 18, 2006 at 15:33 UTC |