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

AF SDK Reference

AFTimeZone.GetDaylightChanges Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFTimeZone.GetDaylightChanges Method
Returns the daylight saving time period for a particular year.

Namespace:  OSIsoft.AF.Time
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public override DaylightTime GetDaylightChanges(
	int year
)
Public Overrides Function GetDaylightChanges ( 
	year As Integer
) As DaylightTime

Dim instance As AFTimeZone
Dim year As Integer
Dim returnValue As DaylightTime

returnValue = instance.GetDaylightChanges(year)
public:
virtual DaylightTime^ GetDaylightChanges(
	int year
) override
abstract GetDaylightChanges : 
        year : int -> DaylightTime 
override GetDaylightChanges : 
        year : int -> DaylightTime 

Parameters

year
Type: SystemInt32
The year to which the daylight saving time period applies.

Return Value

Type: DaylightTime
A DaylightTime instance containing the start and end date for daylight saving time in the specified year.

Remarks

Only one daylight saving time period per year is supported.

If daylight saving time is not used in the current time zone, the return value is a DaylightTime where the value of Start and End is DateTime.MinValue and the value of DaylightTime.Delta is a TimeSpan initialized to 0 ticks.

Version Information

AFSDK


See Also

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in