Re: Calculating Daylight Saving Time
I don't understand your tables... Column c,d,e are years? If there are, what years?
The seven columns represent ANY year. Since in any given year, the first day of March or November could be a Sun, Mon, Tue, etc. I had to account for that fact that there are 7 POSSIBLE starting days for each month.
The reason I also show Sun=1, Mon=2, etc., is so I could ask "less than" or "greater than" questions.
I wanted this to be a universal calculation for USA.
The code will only apply for these rules...
At present, daylight saving time in the United States
begins at 2:00 a.m. on the second Sunday of March and
ends at 2:00 a.m. on the first Sunday of November
If you are in another part of the world where you have different rules (or no DST at all) then obviously this would not apply.
Dwight
These PIC's are like intricate puzzles just waiting for one to discover their secrets and MASTER their capabilities.
Bookmarks