System::TimeZoneInfo::IsDaylightSavingTimeNoThrow method

TimeZoneInfo::IsDaylightSavingTimeNoThrow method

检查指定的日期和时间是否在夏令时范围内。

bool System::TimeZoneInfo::IsDaylightSavingTimeNoThrow(DateTime date_time) const
ParameterType描述
date_timeDateTime日期和时间。

ReturnValue

如果 date_time 属于夏令时,则为 true。

另见