Microsoft Identity Integration Server 2003 Developer Reference

RunEndTime Method of the MIIS_ManagementAgent Class

The RunEndTime method returns the date and time, in Coordinated Universal Time (UTC), when the management agent ended 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.
string RunEndTime();

Parameters

This method has no parameters.

Return Values

Returns a string that contains either the date and time in Coordinated Universal Time format (UTC) when the management agent ended 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

Example Code

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

Requirements

Server: Requires Microsoft Identity Integration Server 2003.
Header: Declared in mmswmi.mof.


See Also

MIIS_ManagementAgent