Time adjustment

Learn how a time maintenance application automatically adjusts system time and how you can manually make time adjustments to the system time. Also, learn how a time adjustment is different from manually setting the time of day system value and why a time adjustment is the preferred method when changing the system time.

The time adjustment function of iSeries™ Navigator allows you to make adjustments to the system time or to use a time maintenance application to make adjustments to the system time automatically. Time adjustments are preferred over manually setting the time of day system value because a time adjustment speeds up or slows down time in small increments rather than making a single, instantaneous time change.

Prior to time adjustments, you can manually change the system time using the time of day system value. For example, if you wanted to set the system time backward three minutes, you would manually change the time of day system value from 3:00:00 (HH:MM:SS) to 2:57:00. By doing this, the system time from 2:57:00 to 3:00:00 is repeated. This can cause problems for applications recording time.

To avoid these types of problems, you can use a time adjustment to change the system time and time will not be skipped or repeated. Adjusting the clock means to incrementally speed up or slow down the clock so that time is gradually adjusted to the desired time value. Adjusting does not cause large jumps in time that can be experienced with setting the clock with the time of day system value. However, adjusting does take time to complete because it is not a single, instantaneous change to the clock. For example, adjusting the clock by 1 second can take 10 seconds of real time to complete.

The following figure shows the difference between manually setting the time of day system value and using the time adjustment function. The lines represent the progression forward in time. The section highlighted in blue shows the period of time that is either skipped or repeated (during manual changes), or continuous (during time adjustments).


A manual change versus a time adjustment.

The Manual Change shows that if you set the system time from 9:00 a.m. to 11:00 a.m. that the two-hour interval from 9:00 a.m. to 11:00 a.m. is skipped. Also, if you set the time backward from 11:00 a.m. to 9:00 a.m., the system time repeats the time frame from 9:00 a.m. to 11:00 a.m.

The Time Adjustment shows that if you adjust the system time using the time adjustment function, the flow of time is neither skipped nor repeated. Time gradually speeds up or slows down until the desired time value is reached. The amount of time that an adjustment takes to complete depends on the length of the adjustment. A two-hour time adjustment, either negative or positive, is the maximum adjustment allowed. Time adjustments ensure that the system time flows continuously; therefore, time adjustments are the recommended method for changing system time.

For more information about how to change the system time, either a manual time change or a time adjustment, see Update system time.

Related concepts
Time maintenance application
Scenario: Adjust the system time 3 minutes
Related tasks
Update system time
System time is off more than 2 hours
Related reference
Time of day (QDATETIME) system value