AFTimeZone.GetDaylightChanges Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
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: DaylightTimeA 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.