Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Returns a value indicating whether the specified date and time is within a daylight saving time period.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Public Overridable Function IsDaylightSavingTime ( _
time As DateTime _
) As Boolean
public virtual bool IsDaylightSavingTime(
DateTime time
)
public:
virtual bool IsDaylightSavingTime(
DateTime time
)
abstract IsDaylightSavingTime :
time:DateTime -> bool
override IsDaylightSavingTime :
time:DateTime -> bool
public function IsDaylightSavingTime(
time : DateTime
) : boolean
Parameters
- time
Type: System. . :: . .DateTime
A date and time.
Return Value
Type: System. . :: . .Boolean
true if time is in a daylight saving time period; otherwise, false.
Remarks
The year to which the daylight saving time period applies is derived from the time parameter.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.