public static NAdjustmentRule CreateAdjustmentRule( System.DateTime dateStart, System.DateTime dateEnd, System.TimeSpan daylightDelta, NTransitionTime daylightTransitionStart, NTransitionTime daylightTransitionEnd )
Parameters
- dateStart
- The effective date of the adjustment rule. If the value of the dateStart parameter is DateTime.MinValue.Date, this is the first adjustment rule in effect for a time zone.
- dateEnd
- The last date that the adjustment rule is in force. If the value of the dateEnd parameter is DateTime.MaxValue.Date, the adjustment rule has no end date.
- daylightDelta
- The time change that results from the adjustment. This value is added to the time zone's NTimeZoneInfo.BaseUtcOffset property to obtain the correct daylight offset from Coordinated Universal Time (UTC). This value can range from -14 to 14.
- daylightTransitionStart
- A NTimeZoneInfo.TransitionTime object that defines the start of daylight saving time.
- daylightTransitionEnd
- A NTimeZoneInfo.TransitionTime object that defines the end of daylight saving time.
Return Value
A NTimeZoneInfo.AdjustmentRule object that represents the new adjustment rule.