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
)
Public Shared Function IsDaylightSavingTime (
time As DateTime,
daylightTime As DaylightTime
) As Boolean
Parameters
- time
- Type: SystemDateTime
A DateTime to evaluate - daylightTime
- Type: System.GlobalizationDaylightTime
The DaylightTime object that represents a daylight time period.
Return Value
Type:
BooleanTrue if the time value occurs during the daylight saving time period for the given year, otherwise false.
See Also