TimeZoneInfo::IsDaylightSavingTime Method (DateTimeOffset)
Indicates whether a specified date and time falls in the range of daylight saving time for the time zone of the current TimeZoneInfo object.
Assembly: mscorlib (in mscorlib.dll)
The return value of TimeZoneInfo::IsDaylightSavingTime is affected by the relationship between the time zone represented by the TimeZoneInfo object and the Offset property of the dateTimeOffset parameter. If dateTimeOffset does not correspond to the current time zone's offset from Coordinated Universal Time (UTC), the method converts that time to the time in the current time zone. It then determines whether that date and time is a daylight saving time.
If the time zone represented by the TimeZoneInfo object does not support daylight saving time, the method always returns false.Notes to Callers
On Windows XP systems, this method applies only the current adjustment rule if the current instance is TimeZoneInfo::Local. As a result, the method may not accurately report whether dateTimeOffset is a daylight saving time for periods before the current adjustment rule came into effect. For more information, see the Notes for Callers section in the Local property.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.