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 local time (e.g., JST), first set the time zone and then check and set the time.
  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 local time (e.g., JST).
    The following example displays the current time in local time.
XSCF> showdate
Tue Sep 20 14:53:00 JST 2016
  1. Execute the setdate command. Be sure to execute the command even if the time is correct.
    Setting the date and time will reboot the XSCF.
    The following example sets the local time (JST) to 16:59:00 September 20, 2016.
XSCF> setdate -s 092016592016.00
Tue Sep 20 16:59:00 JST 2016
The XSCF will be reset. Continue? [y|n] :y
Tue Sep 20 7:59:00 UTC 2016
XSCF>
Note - If the reboot is canceled, the XSCF does not reflect the setting values even when the 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
Tue Sep 20 17:09:15 JST 2016