Page 47
6.1.23 Time (TIME)
The
time
command provides the ability to set or display the time of day on the switch.
> time -h
Description:
time - time of day configuration
Syntax:
time [-h]
time -s
time -z zoneVal
time -a timeOfDay [-z zoneVal]
Switches:
-a set the time of day, [timeOfDay]: “month/day/year 24hr:min:sec”
example “12/01/2015 13:10:00”
-h display help information
-s show current configuration
-z time zone, [zoneVal]
>
The options available using the
time
command are shown below.
The
-a
switch sets the time of day.
The
-h
switch displays the help screen presented above. It is static and provides help information for the
specific command.
The
-s
switch displays the current time of day.
The
-z
switch defines the time zone.
The example below sets the time of day.
> time -a “9/20/2017 07:55:00”
To display the time of day, use the
time -s
command.
> time -s
Time of day: 9/20/2017 07:55:00 PM Pacific Standard Time
sysUpTime: 41191600 (4 days 18 hours 25 minutes 16 secs)
>