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

AF SDK Reference

AFTime.LocalTime Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
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.1.1182

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

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