Click or drag to resize

TimeZoneInformationIsDaylightSavingTime Method (DateTime, DaylightTime)

Determines whether or not the specified date and time is within the daylight saving time period.

Namespace:  WorkflowGen.My.Globalization
Assembly:  WorkflowGen.My (in WorkflowGen.My.dll) Version: 9.0.3.0 (9.0.3.20240719)
Syntax
public static bool IsDaylightSavingTime(
	DateTime time,
	DaylightTime daylightTime
)

Parameters

time
Type: SystemDateTime
A 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.
See Also