CL Command Reference - CHGTIMZON

CL Command List > CHGTIMZON Reference

Description:

The Change Time Zone Description (CHGTIMZON) command changes a time zone description object that defines the properties of a time zone. These properties are used to convert time values between Coordinated Universal Time (UTC) form and local forms. These properties are also used to express time values in local forms.

Restrictions:

. You must have change (*CHANGE) authority to the time zone description being changed.

. You must have execute (*EXECUTE) authority to the QSYS library.


Examples:

Example 1: Changing the Offset

CHGTIMZON TIMZON(CENTRAL) OFFSET(-360)

This command changes the offset specified in the time zone description CENTRAL to negative six hours (-360 minutes).



Example 2: Changing the Daylight Saving Time Start and End Information

CHGTIMZON TIMZON(CENTRALDST)
DSTSTR(*OCT *SUN *LAST กฏ02:00:00กฏ)
DSTEND(*APR *SUN 1 กฏ02:00:00กฏ)

This command changes the Daylight Saving Time start and end information for the time zone description CENTRALDST. Daylight Saving Time will start at 2:00 am on the last Sunday in October and will end at 2:00 am on the first Sunday in April.