5.1;date, revision 5.1, 83/01/27
DATE -- Display the current date and time.
usage: DATE [-Y] [-MD] [-T] [-D]
FORMAT
DATE [options]
DATE prints the current system date and time. It requires no arguments or
options. If no options are specified, the date is displayed as shown in
Example 1 below.
The hardware date and time may be set with the Shell command CALENDAR.
OPTIONS
-Y Display year as YYYY.
-MD Display month and day as MM/DD.
-T Display time in 24-hour format (HH:MM:SS).
-D Display year, month, and day.
EXAMPLES
1. $ date
Tuesday, June 9, 1981 4:20:15 pm (EDT)
2. $ date -t
15:36:14
3. $ date -d
1983/08/08.15:40:48