NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TimeZone.IsDaylightSavingTime (DateTime, DaylightTime[])

Determines whether the specified time is in daylight saving time.

[Visual Basic]
Overloads Overridable Public Function IsDaylightSavingTime( _
   ByVal time As DateTime, _
   ByVal daylightTimes() As DaylightTime _
) As Boolean
[C#]
public virtual bool IsDaylightSavingTime(
   DateTime time,
   DaylightTime[] daylightTimes
);
[C++]
public: virtual bool IsDaylightSavingTime(
   DateTime time,
   DaylightTime* daylightTimes[]
);
[JScript]
public function IsDaylightSavingTime(
   time : DateTime,
   daylightTimes : DaylightTime[]
) : Boolean;

Parameters

time
The time to check to determine whether it is in daylight saving time.
daylightTimes
A DaylightTimes object.

Return Value

true if the time is daylight saving time; otherwise, false.

Exceptions

Exception Type Condition
ArgumentNullException is thrown if either time or DaylightTimes is null.

See Also

TimeZone Class | TimeZone Members | System Namespace | TimeZone.IsDaylightSavingTime Overload List