clock
This command sets the date or time.
Syntax
- Set the date.
- clock yyyy-mm-dd
- Set the time.
- clock hh:mm:ss
Parameters
- yyyy-mm-dd
- Specifies the date in four-digit year, two-digit month, and two-digit day format. When you set the date, separate each value with a hyphen (-).
- hh:mm:ss
- Specifies the time in two-digit hour, two-digit minute, and two-digit second format. When you set the time, separate each value with a colon (:).
Guidelines
The clock command sets the date or time for the appliance. This command is also available in Global mode.
Examples
- Set the date to 8 August 2007.
# clock 2007-08-08 Clock update successful #
- Set the time to 8:31 PM.
# clock 20:31:00 Clock update successful #