date command
This command configures and displays the CMM date settings.
If command syntax is not correctly entered, or if a command fails to run, an error message is returned. See Common errors for a list of error messages that apply to all commands or date command errors for a list of error messages that are specific to the date command.
Function | What it does | Command | Target (see paths in Command targets) |
---|---|---|---|
Display CMM clock information | Displays the following information for the CMM clock:
| date | Primary CMM:
|
Display valid timezone settings | Displays list of available timezone settings for the CMM clock, with limited information about each time zone. The CMM supports more than 400 geography-based timezone settings. | date -tz all | Primary CMM:
|
Display valid timezone settings (verbose) | Displays list of available timezone settings for the CMM clock, with detailed information about each time zone. The CMM supports more than 400 geography-based timezone settings. Note The | date -tz all -v | Primary CMM:
|
Set CMM date | Sets the date for the CMM clock. | date -d date where date is the current calendar date in mm/dd/yyyy format. The month and day can be input as single digits. The year must be a four-digit number between 1970 and 2037 inclusive. This command can only be run by users who have the following command authorities:
| Primary CMM:
|
Set CMM time | Sets the time for the CMM clock. | date -t time where time is the current time in 24-hour hh:mm:ss format. The hours, minutes, and seconds can all be input as single digits. This command can only be run by users who have one or more of the following command authorities:
| Primary CMM:
|
Set CMM clock time zone | Sets the time zone for the CMM clock. Note The daylight-savings time setting for your time zone is set automatically. | date -tz timezone where timezone is one of the valid time zone values listed by the date -tz all command. This command can only be run by users who have the following command authorities:
| Primary CMM:
|
date -T mm[p] -tz America/New_York -t 10:38:00 -d 08/15/2015
date -T mm[p]
date -T mm[p] -tz Africa/Abidjan -v
The following example shows the information that is returned from these commands:
system> date -T mm[p] -tz America/New_York -t 10:38:00 -d 08/15/2015
OK
system> date -T mm[p]
08/15/2015 10:38:03 America/New_York (Eastern Time) DST is currently being observed
system> date -T mm[p] -tz Africa/Abidjan -v
Timezone name: Africa/Abidjan
Timezone Standard name: Africa/Abidjan Time
Timezone standard caption: GMT
Timezone CMM offset: UTC
No daylight saving time in 2015
system>