AFTime.LocalTime Property
- Last UpdatedSep 18, 2024
- PI System
- AF SDK 2024
- Developer
Gets a DateTime object converted to local time.
Namespace: OSIsoft.AF.Time
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.0.1156
Syntax
public DateTime LocalTime { get; }
Public ReadOnly Property LocalTime As DateTime Get Dim instance As AFTime Dim value As DateTime value = instance.LocalTime
public: property DateTime LocalTime { DateTime get (); }
member LocalTime : DateTime with get
Property Value
Type: DateTimeThe value is returned as a local DateTime.
Remarks
This conversion uses the current time zone, defined in regional settings,
which may include multiple daylight saving time adjustment rules.
This allows accurate representation of times outside the daylight saving time adjustment rule for the current year.