Returns a value indicating whether the specified date and time is within the specified daylight saving time period.
true if time is in daylightTimes; otherwise, false.
The TimeZoneInfo.IsDaylightSavingTime(DateTime) method provides the same functionality as this overload of the TimeZone.IsDaylightSavingTime(DateTime, System.Globalization.DaylightTime) method. Whenever possible, use the TimeZoneInfo.IsDaylightSavingTime(DateTime) method.