clock

This command configures the date and time of the device.

Syntax

(config-system)# clock 
(clock)# 

Command

Description

date

Defines the date in the format dd/mm/yyyy (i.e., day/month/year).

date-header-time-sync {off|on}

Enables the device to obtain its date and time for its internal clock from the SIP Date header in 200 OK messages received in response to sent REGISTER messages.

date-header-time-sync-interval

Defines the minimum time (in seconds) between synchronization updates using the SIP Date header method for clock synchronization.

ptp-time-sync {off|on}

Enables the device (virtual machine) to obtain its date and time from the host's virtual PTP (Precision Time Protocol) device.

Note: The parameter is applicable only to Mediant CE/VE deployed on Azure or Hyper-V.

summer-time

Configures daylight saving time.

time

Defines the current time in the format hh:mm:ss (i.e., hour:minutes:seconds).

utc-offset

Defines the time zone (offset from UTC) in seconds.

The value must be a multiple of 60 (seconds). For example, to set an offset of 2 hours, configure the parameter to 7200 (i.e., 2 hours is 7200 seconds). If the value is not a multiple of 60, the device automatically rounds it to the nearest multiple of 60 and logs this adjustment in a syslog message. For example, if you enter 7195, the device rounds it to 7200.

Command Mode

Privileged User

Example

This example configures the date of the device.

(config-system)# clock 
(clock)# date 23/11/2016