6

I want to know the exact time when DST starts/ends in a particular timezone and year.

Using TimeZoneInfo.GetAdjustmentRules and AdjustmentRule.DaylightTransitionStart I can get a TransitionTime object which specifies the DST start moment rule.

Let's assume that I find the adjustment rule that applies for 2010. How do I convert it's TransitionTime object to a DateTime in 2010?

Timezone: (UTC-05:00) Eastern Time (US & Canada)
Valid: 01.01.2007 00:00:00 - 31.12.9999 00:00:00
DST Start TransitionTime:
    IsFixedDateRule: false
    Month: 3
    Week: 2
    DayOfWeek: Sunday
    TimeOfDay: 02:00:00
4

1 回答 1

8

MSDN 有示例。见DisplayTransitionInfo底部功能。

于 2010-11-07T14:41:59.883 回答