Configure the system date and time of switch

Run the clock datetime [ utc ] HH:MM:SS YYYY-MM-DD command in the user view to configure the current date and time of a switch.

# Set the current date and time of a switch to 2016-01-01 00:00:00.

clock datetime 0:0:0 2016-01-01
Note:
If the scheduled restart function is configured in the user view using the schedule reboot { at time | delay interval [ force ] } command, and the system time is set to be over 10 minutes later than the scheduled restart time, the scheduled restart function becomes ineffective. For example, if the scheduled restart time is 2016-01-01 00:00:00 and the system time is changed to 2016-01-01 01:00:00, the scheduled restart function becomes ineffective.

Scroll to top