Chapter 4: Using the Command Line Interface
156
Assign the date:
config:#
time set date <yyyy-mm-dd>
Assign the time:
config:#
time set time <hh:mm:ss>
Variables:
Variable
Description
<yyyy-mm-dd>
Type the date in the format of yyyy-mm-dd.
For example, type
2015-11-30
for November 30, 2015.
<hh:mm:ss>
Type the time in the format of hh:mm:ss in the 24-hour format.
For example, type
13:50:20
for 1:50:20 pm.
Setting the Automatic Daylight Savings Time
This command determines whether the daylight savings time is applied to the time settings.
config:#
time autoDST <option>
Variables:
•
<option> is one of the options:
enable
or
disable
.
Mode
Description
enable
Daylight savings time is enabled.
disable
Daylight savings time is disabled.
Examples
This section illustrates several time configuration examples.
Example 1 - Time Setup Method
The following command sets the date and time settings by using the NTP servers.
config:#
time method ntp