datetime set

Purpose

Configure the current time on the appliance.

Syntax

datetime set time

Parameters

time
  • Current time in local time (as determined by the timezone setting).
  • Format is YYYY-MM-DD hh:mm:ss or YYYY-MM-DD hh:mm:ssZ with the following specifications:
    YYYY
    Represents the year
    MM
    Represents the month
    DD
    Represents the day of the month
    hh
    Represents hour
    mm
    Represents minutes
    ss
    Represents seconds
    Z
    Appends to the time to specify it in Greenwich mean time (GMT).

Related Commands

See datetime get, timezone get, and timezone set.

Example

Display the configured timezone, set the current time on the appliance and then display configured time.
Console> timezone get
Timezone is EST
Console> datetime set 2012-03-22 10:01:00
Console> datetime get
GMT: 2012-03-22T15:01:03Z
Local: Mar 22, 2012 10:01:03 PM
Console>