date [ -u ] -c
date [ -f ] -c initialize
When invoked with an argument, date sets the current date and time of the system clock; the argument for setting the date and time is interpreted as follows:
- First 2 digits of the year (e.g., 19 for 1999).
- Next 2 digits of year (e.g., 99 for 1999).
- Numeric month. A number from 01 to 12.
- Day, a number from 01 to 31.
- Hour, a number from 00 to 23.
- Minutes, a number from 00 to 59.
- Seconds, a number from 00 to 59.
Time changes for Daylight Saving and Standard time, and for leap seconds and years, are handled automatically.
- Display or set the date in GMT (universal time) instead of local time.
- Display or set the date and time for the compliance clock instead of the system clock. This option may be used only if one has installed a SnapLock Compliance or SnapLock Enterprise license.
- Suppress the interactive confirmations that occur when using -c initialize.
These are 2 different commands, but they are closely connected.
Use set date to set the date (set date mm/dd/yy)
Use set time to set the time (set time hh:mm:ss)
show date and show time are the same command really and both give the same output.
CFE> show date
Current date & time is: 03/03/2009 11:33:26
CFE> show time
Current date & time is: 03/03/2009 11:33:27