Skip to main content

5.6 Setting the Time


5.6 Setting the Time
This section describes the procedure for setting the system date and time.
The date and time in the factory default settings are set to coordinated universal time (UTC). If you want to display the time in the local time (JST), first set the time zone and then check the time. Change the setting as needed.
  1. Execute the showtimezone command to check the time zone.
    The following example displays the factory default setting (UTC).
XSCF> showtimezone -c tz
UTC
  1. To set the time zone, execute the settimezone command, and check which time zones can be set.
    If you do not want to set the time zone, skip steps 2 and 3.
    The following example displays a partial list of time zones that can be set.
XSCF> settimezone -c settz -a
Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa
Africa/Algiers
Africa/Asmara
Africa/Asmera
Africa/Bamako
Africa/Bangui
.
.
  1. To set the time zone, execute the settimezone command.
    The following example sets the time zone to "Asia/Tokyo."
XSCF> settimezone -c settz -s Asia/Tokyo
Asia/Tokyo
  1. Execute the showdate command to display the XSCF time.
    If you have set the time zone, the command displays the time in the local time (JST).
    The following example displays the current time in the local time.
XSCF> showdate
Fri Oct 20 16:59:00 JST 2017
  1. Execute the setdate command. Please execute it even when the time is correct.
    Setting the date and time reboots the XSCF.
    The following example sets the local time (JST) to 17:00:00 October 20, 2017.
XSCF> setdate -s 102017002017.00
Fri Oct 20 17:00:00 JST 2017
The XSCF will be reset. Continue? [y|n] :y
Fri Oct 20 8:00:00 UTC 2017
XSCF>
Note - If the reboot is canceled, the XSCF does not reflect the setting values even when reboot is by the rebootxscf command.
  1. Log in to the XSCF again.
    For details, see "5.3 Logging In to the XSCF."
  1. Execute the showtimezone command.
    Confirm that it shows the set time zone.
XSCF> showtimezone -c tz
Asia/Tokyo
  1. Execute the showdate command.
    Confirm that it shows the set time.
XSCF> showdate
Fri Oct 20 17:05:00 JST 2017