CimNumberFormat.SetTimeFormat (method)

Sets the number format object to an absolute or relative time format.
Syntax: object.SetTimeFormat FormatOrType
Parameters:
FormatOrType As VARIANT - Specifies the absolute time format string if apNumberAbsoluteTime desired or the relative time format type if apNumberRelativeTime desired.
Description: CimNumberFormat.SetTimeFormat sets the number format object to either apNumberAbsoluteTime or apNumberRelativeTime depending on the argument you specify.

Examples

The following CimView script excerpt sets the first X axis' number format object to an absolute time format:
cimOleObj.X.Item(0).Format.SetTimeFormat "hh:mm:ss tt"

The following CimView script excerpt sets the first Y axis' number format object to a relative time format:
cimOleObj.Y.Item(0).Format.SetTimeFormat apTimeHHMMSS