Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFTimeZone.IsDaylightSavingTime Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFTimeZone.IsDaylightSavingTime Method
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: Boolean
Returns 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
In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in