date
NAME
date – display or set date and time
SYNOPSIS
date [ -u ] [ [[[[<cc>]<yy>]<mm>]<dd>]<hhmm>[.<ss>] ]date [ -u ] -c
date [ -f ] -c initialize
DESCRIPTION
date displays the current date and time of the system clock when invoked without arguments.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:
- cc
- First 2 digits of the year (e.g., 19 for 1999).
- yy
- Next 2 digits of year (e.g., 99 for 1999).
- mm
- Numeric month. A number from 01 to 12.
- dd
- Day, a number from 01 to 31.
- hh
- Hour, a number from 00 to 23.
- mm
- Minutes, a number from 00 to 59.
- ss
- Seconds, a number from 00 to 59.
Time changes for Daylight Saving and Standard time, and for leap seconds and years, are handled automatically.
OPTIONS
- -u
- Display or set the date in GMT (universal time) instead of local time.
- -c
- 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.
- -f
- Suppress the interactive confirmations that occur when using -c initialize.
CLUSTER CONSIDERATIONS
You cannot use the date command in partner mode to set the date on the failed filer.
EXAMPLES
To set the current time to 21:00:
date 2100
date 062100
date 12062100
date 9912062100
date 200212062100
SEE ALSO
partner , rdate , timezone









































