Set System Time (QWCSETTM) API


  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: YES

The Set System Time (QWCSETTM) API sets the Coordinated Universal Time (UTC) for the system.

For additional information on setting the time, see Usage Notes.


Authorities and Locks

User Special Authority
*ALLOBJ

Required Parameter Group

Input format
INPUT; CHAR(8)

The format of the date specified for the input variable. Valid values are:


Input variable
INPUT; CHAR(*)

The date as Coordinated Universal Time (UTC) that is used to set the time-of-day clock. See Input Variable Formats to determine the structure of the input variable.

Error code
I/O; CHAR(*)

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


Input Variable Formats

This table shows the formats used for the input variable parameter.



20-Byte Character Date and Time Value Structure

This table shows the structure used for the input variable when the format is *YYMD, *MDYY, and *DMYY.



Usage Notes

The supported date range is from August 23, 1928, 12:03:06.314752 to May 10, 2071, 11:56:53.685240. Setting an input date that is outside this range will result in a date within this range. If you specify a precision of microseconds, it is recommended that you use a microsecond value that is evenly divisible by 8.


Error Messages

The following messages may be sent from this function:




API introduced: V5R3

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