Thing Frankfurt Blog / Archiv
Stefan Beck an Rainer Ganahl - 21.3.1994
21. 3. 1994
Lieber Rainer,
im folgenden schicke ich Dir eine Textstruktur aus meiner Beschaeftigung mit dem UNIXxxx Operating System. Leider laesst das ASCII Protokol eine genaue typografische Wiedergabe nicht zu.
Herzliche Gruesse
Stefan
stefan beck. . . . . . . . . . . power series . . . . . . . . . . .date(1)
NAME
date - print and set the date
SYNOPSIS
date [+format]
date [ [-n] mmddhhmm[ccyy | yy]]
DESCRIPTION
If no argument is given, or if the argument begins with +, the current date and time are printed. Otherwise, the current date is set (only by super-user). The first mm is the month number; dd is the day number in the month; hh is the hour number (24 hour system); the second mm is the minute number; cc is the century minus one and is optional; yy is the last 2 digits of the year number and is optional. For example:
date 10080045
sets the date to Oct 8, 12:45 AM. The current year is the default if no year is mentioned. The system operates in GMT. date takes care of the conversion to and from local standard and daylight time. Only the super-user may change the date.
If timed(2) is running on the machine, the date is set on all machines in the network which are also running timed(2). However, the -n flag means "no network", i.e., it does not set the date for all the machines on the network.
If the argument begins with +, the output of date is under the control of the user. All output fields are of fixed size (zero padded if necessary). Each Field Descriptor is preceded by % and will be 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 new-line character. If the argument contains embedded blanks it must be quoted (see the EXAMPLE section).
SEE ALSO
sysadm(1).
cftime(4), environ(5) in the System Administrator's Reference Manual
EXAMPLE
date date date hate hate hate
date date date hate hate hate
date date date hate hate hate
hate hate hate date date date
hate hate hate date date date
hate hate hate date date date
stefan beck. . . . . . . . . . . power series . . . . . . . . . . .date(1)