Retrieve System Time Information (QWCRTVTM) API


  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: Yes

The Retrieve System Time Information (QWCRTVTM) API retrieves the current Coordinated Universal Time and time adjustment information.


Authorities and Locks

None


Required Parameter Group

Receiver variable
OUTPUT; CHAR(*)

The variable that is used to return the time information.

Length of receiver variable
INPUT; BINARY(4)

The length of the receiver variable. This must be a minimum of 8 bytes.

Format name
INPUT; CHAR(8)

The format of the information to be returned in the receiver variable. The possible format name is:


Number of fields to return
INPUT; BINARY(4)

The number of fields to return in the specified format.

Key of fields to return
INPUT; ARRAY(*) of BINARY(4)

The list of fields to be returned in the specified format. For a list of valid fields, see Valid Keys.

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.


Format of Receiver Variable

The following table describes the order and format of the data that is returned in the receiver variable. For detailed descriptions of the fields in this table, see Field Descriptions.

RTTM0100


Field Descriptions

Bytes available. The number of bytes of data available to be returned. All available data is returned if enough space is provided.

Bytes returned. The number of bytes of data returned.

Data. The data returned for the key field.

Key field. The field returned. See Valid Keys for the list of valid keys.

Length of data. The length of the data returned for the field.

Length of field information returned. The total length of information returned for this field. This value is used to increment to the next field in the list.

Number of fields returned. The number of fields returned to the application.

Offset to key fields. The offset in bytes from the beginning of the receiver to the key fields array entry.

Reserved. An unused field.

Type of data. The type of data returned.


Valid Keys

The following indicates the valid keys for the formats specified. See Key Field Descriptions for the descriptions of the valid key attributes.


Key Field Descriptions

Coordinated Universal Time. The value of the time-of-day clock which is returned as the Coordinated Universal Time (UTC) for the system. The UTC is returned as a system time-stamp.

Time adjustment amount. The time value which specifies the remaining amount of time, in microseconds, by which the time-of-day clock will be increased or decreased. If a time adjustment is not active, this field will be hex zeros.

Time adjustment direction. The direction of the time-of-day clock adjustment for the system. If a time adjustment is not active, this field will be blank.

0
Increase time of day.
1
Decrease time of day.

Time adjustment duration. The time value which provides an estimate of the amount of time, in microseconds, required in order to complete the time-of-day clock adjustment. If a time adjustment is not active, this field will be hex zeros.

Time adjustment status. The status of the time-of-day clock adjustment.

0
Time-of-day clock adjustment not active.
1
Time-of-day clock adjustment active.

Time adjustment supported. The availability of the time-of-day clock adjustments for the system.

0
Time adjustments not supported.
1
Time adjustments supported.

Error Messages

The following messages may be sent from this function:




API introduced: V5R3

[ Back to top | Date and Time APIs | APIs by category ]