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.
In reply to Re^2: Getting previous dates from the current date
by FitTrend
in thread Getting previous dates from the current date
by TASdvlper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |