Date and time system values: Time of day

The Time of day system value is also known as QDATETIME, QTIME, QHOUR, QMINUTE, and QSECOND. You can use this system value to set the time on your system.

Quick reference
Location From IBM® Navigator for i, select Configuration and Service > System Values. Right-click on Date and Time and click Properties, then switch to the Time tab.
Special authority All object (*ALLOBJ).
Default value No default value.
Changes take effect Immediately.
Lockable No.

What can I do with this system value?

You can specify the time that is used on your system. The time specifies the hour (QHOUR), minutes (QMINUTE), and seconds (QSECOND).

When you need to update the system time, a time adjustment is the preferred method. A time adjustment ensures that time is not skipped or repeated. You can specify up to a 2-hour time adjustment. If you need to update the system time by more than 2 hours, you can use multiple time adjustments to reach the time value you want. Make manual changes to the Time of day system value only if you need to change the time immediately.

If the system observes daylight saving time, you cannot change the date and time to the hour that daylight saving time affects. For example, if the system clock moves from 2:00 to 3:00 on April 6 for daylight saving time, you cannot change the time to a value that is greater than or equal to 2:00 and less than 3:00 on April 6.

In the IBM Navigator for i interface, the System date (QDATE) and Time of day (QTIME) system values have not changed. However, they are combined into one system value, QDATETIME, in the character-based interface. If you are accessing the QDATE and QTIME system values through the character-based interface, use the QDATETIME system value rather than the QDATE or QTIME system value. In the character-based interface, the QDATE and QTIME system values are still accessible. Use the QDATE and QTIME system values only when you need to retrieve or change only one of the values. If you need to retrieve or change both values, use the QDATETIME system value.