Time

The Alarm.SelectedAlarms and Alarm.Alarms properties both return an alarm collection and each alarm in the collection has a Time property. The Time property represents the time at which the alarm was raised.

Syntax

Time

Description

Returns the time at which the alarm was raised.

Arguments

None.

Returns

Time {DateTime}. The time stamp for the alarm.

Example:

In this example, Alarm.Time is used to return the time stamp of the selected alarm. The time stamp is displayed in a message box next to the text "Time", and the severity description, the alarm item’s full name, and the name of the logged on user are also shown.

Function ShowAlarmInfo( Alarm )

MsgBox "One Alarm Selected", "Severity " & Alarm.SeverityDesc & ", Time " & Alarm.Time & ", logged on user name " & Alarm.Server.Username & ", Object name " & Alarm.Object.Fullname

End Function

By design, this property returns the time stamp in UTC. You can convert this time stamp to local time by using the UTCToLocalTime() property. For more information, see Time Zone Support in Geo SCADA Expert.


Disclaimer

Geo SCADA Expert 2022