OPC Studio User's Guide and Reference
TimeLocal Property (AEEventData)



OpcLabs.EasyOpcClassicCore Assembly > OpcLabs.EasyOpc.AlarmsAndEvents Namespace > AEEventData Class : TimeLocal Property
Time of the event occurrence - for conditions, time that the condition transitioned into the new state or sub-condition. In local time.
Syntax
'Declaration
 
<IgnoreDataMemberAttribute()>
<XmlIgnoreAttribute()>
Public Property TimeLocal As Date
'Usage
 
Dim instance As AEEventData
Dim value As Date
 
instance.TimeLocal = value
 
value = instance.TimeLocal
[IgnoreDataMember()]
[XmlIgnore()]
public DateTime TimeLocal {get; set;}
[IgnoreDataMember()]
[XmlIgnore()]
public:
property DateTime TimeLocal {
   DateTime get();
   void set (    DateTime value);
}
Remarks

For example, if the event notification is for acknowledgment of a condition, this would be the time that the condition became acknowledged.

If you are using VBA in Excel, beware that it reduces the precision of date/times from OLE Automation to seconds. In order to achieve milliseconds precision from VBA in Excel, use the TimeLocalDouble property instead.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also