Share via


IsDaylightSavingTime Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Returns a value indicating whether the specified date and time is within a daylight saving time period.

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

Syntax

'Declaration
Public Overridable Function IsDaylightSavingTime ( _
    time As DateTime _
) As Boolean
public virtual bool IsDaylightSavingTime(
    DateTime time
)
public:
virtual bool IsDaylightSavingTime(
    DateTime time
)
abstract IsDaylightSavingTime : 
        time:DateTime -> bool 
override IsDaylightSavingTime : 
        time:DateTime -> bool 
public function IsDaylightSavingTime(
    time : DateTime
) : boolean

Parameters

Return Value

Type: System. . :: . .Boolean
true if time is in a daylight saving time period; otherwise, false.

Remarks

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

.NET Framework Security

See Also

Reference

TimeZone Class

System Namespace