Share via


TimeZone.IsDaylightSavingTime Method

Returns a value that indicates whether a specified date and time is in a daylight saving time period.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

Syntax

[MethodImplAttribute]
public virtual bool IsDaylightSavingTime (
         DateTime time
)

Parameters

  • time
    The specified date and time.

Return Value

true if the time parameter is in a daylight saving time period; otherwise, false. Note that if time is a null reference, the return value is false.

Remarks

The year to which the daylight saving time period applies is derived from the time parameter.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

TimeZone Class
TimeZone Members
System Namespace