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

AF SDK Reference

Product Family
Current publication
Table of Contents

AFTime.LocalTime Property

AFTime.LocalTime Property
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: DateTime
The 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.

Version Information

AFSDK


See Also

Was this topic helpful?