UTCTime Property

Provides access to the date and time that the event occurred.

Syntax

ScriptContext.Event.UTCTime
ScriptContext.CreateEvent.UTCTime

Access

Read Only When used with an event provided to the script by the Microsoft Operations Manager 2000 (MOM) product.
Read/Write When used with a new event created with the ScriptContext.CreateEvent Method.

Return Type

Date.

Example

To create a new event and set the UTCTime property, enter:


Dim MYevent1
Dim Myevent2
set MYevent1 = ScriptContext.CreateEvent
set MYevent2 = ScriptContext.Event
MYevent1.Time = MYevent2.UTCTime

This example sets the UTCTime property based on the event that caused the MOM product to invoke the script. The UTCTime property is set to the time that the event occurred.