Partager via


RunStartTime Method of the MIIS_ManagementAgent Class

The RunStartTime method returns the date and time, in Coordinated Universal Time (UTC), when the management agent started a run. The method returns a value only if the management agent is idle. For the local time the management agent ended the run, convert the return value to local time. To use this method, you must be logged on as a member of the MIISBrowse, MIISOperators, or MIISAdmins security group.

Syntax

string RunStartTime();

Parameters

This method has no parameters.

Return Value

Returns a string that contains either the date and time in Coordinated Universal Time (UTC) zone when the management agent started a run or one of the values listed in Return Strings.

If the management agent has never been run or the previous runs have been cleared, then the return value is an empty string.

Remarks

The format of the return value is yyyy-MM-dd HH:mm:ss.fff.

Format specifier Description
yyyy Specifies the four-digit year
MM Specifies the two-digit month in the range of 1 to 12
dd Specifies the two-digit day of the month in the range of 1 to 31
HH Specifies the two-digit hour of the day in 24-hour format in the range of 0 to 23
mm Specifies the two-digit minute of the day in the range of 0 to 59
ss Specifies the two-digit second of the day in the range of 0 to 59
fff Specifies the three-digit fractions of a second in the range of 0 to 999

Examples

The example given in the Methods topic shows you how to use Visual Basic Scripting Edition (VBScript) to get the start time of the last management agent run.

Requirements

Product ILM 2007 FP1
MOF Mmswmi.mof

See Also

MIIS_ManagementAgent
Return Strings

Send comments about this topic to Microsoft

Build date: 2/16/2009