projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
forgot to free at one point
[unix-history]
/
usr
/
src
/
bin
/
date
/
date.1
diff --git
a/usr/src/bin/date/date.1
b/usr/src/bin/date/date.1
index
e5ddebc
..
0d718b0
100644
(file)
--- a/
usr/src/bin/date/date.1
+++ b/
usr/src/bin/date/date.1
@@
-3,7
+3,7
@@
.\"
.\" %sccs.include.redist.man%
.\"
.\"
.\" %sccs.include.redist.man%
.\"
-.\" @(#)date.1 6.
9
(Berkeley) %G%
+.\" @(#)date.1 6.
12
(Berkeley) %G%
.\"
.Dd
.Dt DATE 1
.\"
.Dd
.Dt DATE 1
@@
-15,6
+15,7
@@
.Nm date
.Op Fl nu
.Op Fl d Ar dst
.Nm date
.Op Fl nu
.Op Fl d Ar dst
+.Op Fl r Ar seconds
.Op Fl t Ar minutes_west
.Op +format
.Op [yy[mm[dd[hh]]]]mm[\&.ss]
.Op Fl t Ar minutes_west
.Op +format
.Op [yy[mm[dd[hh]]]]mm[\&.ss]
@@
-25,7
+26,7
@@
Providing arguments will format the date and time in a user-defined
way or set the date.
Only the superuser may set the date.
.Pp
way or set the date.
Only the superuser may set the date.
.Pp
-
Options are
:
+
The options are as follows
:
.Pp
.Tw Ds
.Tp Fl d
.Pp
.Tw Ds
.Tp Fl d
@@
-51,6
+52,10
@@
The
option stops
.Nm date
from setting the time for other than the current machine.
option stops
.Nm date
from setting the time for other than the current machine.
+.Tp Fl r
+Print out the date and time for
+.Ar seconds
+from the Epoch.
.Tp Fl t
Set the kernel's values for minutes west of GMT.
.Ar Minutes_west
.Tp Fl t
Set the kernel's values for minutes west of GMT.
.Ar Minutes_west
@@
-84,9
+89,9
@@
A number from 1 to 12.
.Dp Ar dd
Day, a number from 1 to 31.
.Dp Ar hh
.Dp Ar dd
Day, a number from 1 to 31.
.Dp Ar hh
-Hour, a number from 0 to 2
4
.
+Hour, a number from 0 to 2
3
.
.Dp Ar mm
.Dp Ar mm
-Minutes, a number from 0 to
60
.
+Minutes, a number from 0 to
59
.
.Dp Ar .ss
Seconds, a number from 0 to 60.
.Dp
.Dp Ar .ss
Seconds, a number from 0 to 60.
.Dp
@@
-98,7
+103,7
@@
and years are handled automatically.
.Sh EXAMPLES
The command:
.Pp
.Sh EXAMPLES
The command:
.Pp
-.Dl date
+DATE: %m/%d/%y%nTIME: %H:%M:%S\en
+.Dl date
``+DATE: %m/%d/%y%nTIME: %H:%M:n''
.Pp
will display:
.Pp
.Pp
will display:
.Pp