Skip to main content

3.6.5 Setting Daylight Saving Time


3.6.5 Setting Daylight Saving Time
To check or set daylight saving time information, use the showtimezone and settimezone commands.
  1. Execute the showtimezone command to display the time zone.
    The following example displays the time zone.
XSCF> showtimezone -c tz
Asia/Tokyo
  1. The following example displays the set daylight saving time information. In this example, the time zone is JST, the offset from GMT is +9 hours, the daylight saving time name is JDT, daylight saving time is 1 hour ahead, and the period is from 2:00 (JST) on the last Sunday in March to 2:00 (JDT) on the last Sunday in October.
XSCF> showtimezone -c dst -m custom
JST-9JDT,M3.5.0,M10.5.0
  1. Execute the settimezone command to set daylight saving time information for the XSCF.
    The following example sets the following daylight saving time information: the time zone abbreviation is JST, the offset from GMT is +9 hours, the daylight saving time name is JDT, the offset from GMT daylight saving time is +10 hours, and the period is from 0:00 (JST) on the first Sunday in April to 0:00 (JDT) on the first Sunday in September.
XSCF> settimezone -c adddst -b JST -o GMT-9 -d JDT -p GMT-10 -f
M4.1.0/00:00:00 -t M9.1.0/00:00:00
JST-9JDT-10,M4.1.0/00:00:00,M9.1.0/00:00:00
  1. The following example deletes the currently set daylight saving time information.
XSCF> settimezone -c deldst -b JST -o GMT-9
  1. To apply the daylight saving time information changed by the -c adddst or -c deldst option, log out and then log in again.
  1. Execute the showtimezone command, and confirm the setting.