Manoj Reddy's Reference Guide

calendar set

To set the system calendar, use one of the formats of the calendar set EXEC command.

calendar set hh : mm : ss day month year

calendar set hh : mm : ss month day year

Syntax Description

hh   mm :  ss 

Current time in hours (military format), minutes, and seconds.

day 

Current day (by date) in the month.

month 

Current month (by name).

year 

Current year (no abbreviation).

Command Modes

EXEC

Command History

ReleaseModification
10.0

This command was introduced.

Usage Guidelines

Some platforms have a calendar which is separate from the system clock. This calendar runs continuously, even if the router is powered off or rebooted. After you set the calendar, the system clock will be automatically set from the calendar when the system is restarted or when the clockread-calendar EXEC command is issued. The time specified in this command is relative to the configured time zone.

Examples

The following example manually sets the system calendar to 1:32 p.m. on July 23, 1997:

calendar set 13:32:00 23 July 1997

Related Commands

CommandDescription
clock read-calendar Manually reads the calendar into the system clock.
clock set Manually set the system clock.
clock summer-time Configures the system to automatically switch to summer time (daylight savings time).
clock timezone Sets the time zone for display purposes.
clock update-calendar Sets the calendar from the system clock.

Printed for apswan@ctr.ap.nic.in on Wed Mar 5 22:32:57 PST 2003

All material in this document copyright 2000 Cisco Systems, Inc. All rights reserved. No material may be reproduced or distributed without written permission of Cisco Systems, Inc.