clock datetime

Syntax

clock datetime <DATE> <TIME>

Description

Sets the switch date and time.

Command context

config

Parameters

<DATE>

Specifies the date. Format: YYYY-MM-DD.

<TIME>

Specifies the time in 24-hour clock format. Seconds are optional. Format: HH:MM or HH:MM:SS.

Authority

Administrators

Examples

This example sets the date and time to Dec 13, 2017 at 15:00.

switch(config)# clock datetime 2017-12-13 14:15:00