AFTimeZone.IsDaylightSavingTime Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Returns a value indicating whether a specified date and time is within a
daylight savings time period.
Namespace: OSIsoft.AF.Time
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public override bool IsDaylightSavingTime( DateTime time )
Public Overrides Function IsDaylightSavingTime ( time As DateTime ) As Boolean Dim instance As AFTimeZone Dim time As DateTime Dim returnValue As Boolean returnValue = instance.IsDaylightSavingTime(time)
public: virtual bool IsDaylightSavingTime( DateTime time ) override
abstract IsDaylightSavingTime : time : DateTime -> bool override IsDaylightSavingTime : time : DateTime -> bool
Parameters
- time
- Type: SystemDateTime
A date and time value.
Return Value
Type: BooleanReturns if time is in a daylight saving time period; otherwise.
Remarks
The return value is affected by the relationship between the time zone and the
specified time parameter. See
for more information.
Version Information
AFSDK
See Also
Reference
TimeZoneInfo.IsDaylightSavingTime
TimeZoneInfo.IsDaylightSavingTime