Date and time system values: Leap-year adjustment

The Leap-year adjustment system value is also known as QLEAPADJ. This system value sets the leap-year adjustment 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 Date tab.
Special authority None.
Default value Use Gregorian leap-year adjustment.
Changes take effect Immediately.
Lockable No.
Special considerations The Leap-year adjustment system value is read-only. The system manages this system value. You cannot edit this system value.

What can I do with this system value?

This system value adjusts the system calendar for the leap year in different calendar systems. The system manages this system value. You cannot edit this system value.

Note: For systems running IBM i V5R4, or earlier, the Leap-year adjustment system value is editable. You can use this system value to set the leap-year adjustment on your system.

If your calendar year agrees with the Gregorian calendar system, select Use Gregorian leap-year adjustment (0). If your calendar year differs from the Gregorian calendar system, adjust the system calendar to account for the leap year of the calendar year you are using. To make the adjustment, divide the leap year in your calendar system by 4, and then set the Leap-year adjustment system value to the value of the remainder.

For example, the Gregorian calendar year of 1984 was the year 2527 in the Thai Buddhist calendar. Because 2527 was a leap year, you divide 2527 by 4; this leaves a remainder of 3. Therefore, to adjust the system calendar for the Thai Buddhist calendar, specify 3 for the Leap-year adjustment system value.