date
The date command displays or sets the date and time.
Command Format
date [yyyymmddHHMM.SS]
where:
| yyyymmddHHMM.SS | is the new date and time |
Functional description
Invoking the date command with no arguments displays the current date and time as stored in the boards battery-backed clock/calendar device.
If an argument is given, the argument is used to set the current date and time.
The optional argument is a string of digits, with the following meaning:
| Datum | Meaning |
| yyyy | year |
| mm | month (January = 01) |
| dd | day of month |
| HH | hour (24 hour clock) |
| MM | minute |
| .SS | seconds |
When setting the date and time, you only need to enter as much as needs changing, starting with the minutes, then hours, then day, etc. Any value which is omitted is left unchanged, except for seconds, which will be set to zero if omitted. Note that single digit values has to be typed with a preceeding '0', eg 01, 02, 03 etc.
Some examples of the date command follow.
PMON> date Display current time
Wed Feb 23 13:29:33 2001
PMON> date 32 Change minutes
Wed Feb 23 13:32:00 2001
PMON> date 1405 Change hours and minutes
Wed Feb 23 14:05:00 2001
PMON> date 200102241103 New date and time
Thu Feb 24 11:03:00 1994
Environment
The command uses the TZ environment variable.
The time zone information will be used to adjust the time when displaying the current time. For example, if set to GMT-1, one hour will be added to the time. This can be used to display the local time while the target board Time Of Day clock is set to GMT.
See Also
...

