Click or drag to resize

TimeZoneIsDaylightSavingTime Method (DateTime, DaylightTime)

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

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static bool IsDaylightSavingTime(
	DateTime time,
	DaylightTime daylightTime
)

Parameters

time
Type: SystemDateTime
DateTime to evaluate
daylightTime
Type: System.GlobalizationDaylightTime
The DaylightTime object that represents a daylight time period.

Return Value

Type: Boolean
True if the time value occurs during the daylight saving time period for the given year, otherwise false.
Remarks
The summary description is lifted right from the MSDN docs for the same method on the TimeZone class.
See Also