DATE(1) DOMAIN/IX Reference Manual (SYS5) DATE(1)
NAME
date - print the date
USAGE
date [ +format ]
DESCRIPTION
Date prints the current date and time. If you specify an
argument beginning with a plus (+), the output of date is
user-controlled. The output format is similar to that of
the first argument to printf (3S). All output fields are of
fixed size (zero padded if necessary). Each field descrip-
tor is preceded by % and is replaced in the output by its
corresponding value. A single % is encoded by %%. All
other characters are copied to the output without change.
The string is always terminated with a newline character.
FIELD DESCRIPTORS
n Newline character
t Tab character
m Month of year - 01 to 12
d Day of month - 01 to 31
y Last 2 digits of year - 00 to 99
D Date as mm/dd/yy
H Hour - 00 to 23
M Minute - 00 to 59
S Second - 00 to 59
T Time as HH:MM:SS
j Day of year - 001 to 366
w Day of week - Sunday = 0
a Abbreviated weekday - Sun to Sat
h Abbreviated month - Jan to Dec
r Time in AM/PM notation
CAUTIONS
The current version of date does not allow you to set the
system date and time interactively. Your node must be shut
down and the DOMAIN calendar stand-alone utility run in
Printed 6/10/85 DATE-1
DATE(1) DOMAIN/IX Reference Manual (SYS5) DATE(1)
order to make the change. Refer to the DOMAIN Command
Reference for information on this.
RELATED INFORMATION
printf (3S).
DATE-2 Printed 6/10/85