IsDaylightSavingTime()

TimeZoneInfo::IsDaylightSavingTime(DateTime) const method

Checks if specified date and time falls in range of daylight saving time.

bool System::TimeZoneInfo::IsDaylightSavingTime(DateTime date_time) const

Arguments

ParameterTypeDescription
date_timeDateTimeDate and Time.

Return Value

True if date_time is a daylight saving time.

TimeZoneInfo::IsDaylightSavingTime(const DateTimeOffset&) const method

Checks if specified date and time falls in range of daylight saving time.

bool System::TimeZoneInfo::IsDaylightSavingTime(const DateTimeOffset &date_time_offset) const

Arguments

ParameterTypeDescription
date_time_offsetconst DateTimeOffset&Date and Time.

Return Value

True if date_time is a daylight saving time.

See Also