Can anyone explain how the DaylightSavingsRule can have "StartMonth" after "EndMonth"?
Using C # (.NET framework) I go through all the TimeZones and their AdjustmentRules ... and for "Mauritius Standard Time" {(GMT + 04: 00) Port Louis)} - the adjustment rule is as follows:
IsFixed = false;
DaylightTransitionStart.Month = 10;
DaylightTransitionEnd.Month = 1;
From what I understand, "IsFixed = false" means that I am not using the "StartDate" and "EndDate" fields ... but I need to use DaylightTransitionStart and End to dynamically determine if the time is in daytime or not.
The PROBLEM here is that for about 30 transition rules, "StartMonth" is AFTER "EndMonth"
How does DaylightSavingsTime start in October 2008 and end in January 2008?
Please help me figure this out ... once I get over this hurdle I should have a complete "convert any time to and from UTC with any time zone for the whole story". The SQL function is written.
source to share
The time period may not logically end before it starts, but you might be guessing that these months refer to months in the same year when the OCT may actually be in 2008, but JAN is in 2009.
Think of it as a circular list.
The DaylightTime class uses DateTime for both the start and end of daylight savings time, so the year is specified.
source to share