summaryrefslogtreecommitdiffstats
path: root/bin/date/date.1
diff options
context:
space:
mode:
authordanny <danny@FreeBSD.org>1997-10-01 05:24:08 +0000
committerdanny <danny@FreeBSD.org>1997-10-01 05:24:08 +0000
commit9bb9e305969e89e96e986d8770722437062010ee (patch)
tree9808003c64c35803d00a310fbe7e07d74d1894e5 /bin/date/date.1
parente8ee3433c32e32272b667e4971ecf1b5932a3775 (diff)
downloadFreeBSD-src-9bb9e305969e89e96e986d8770722437062010ee.zip
FreeBSD-src-9bb9e305969e89e96e986d8770722437062010ee.tar.gz
Add the ability to supress the '\n' at the end of the date printed.
Diffstat (limited to 'bin/date/date.1')
-rw-r--r--bin/date/date.17
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/date/date.1 b/bin/date/date.1
index 860516e..0a97909 100644
--- a/bin/date/date.1
+++ b/bin/date/date.1
@@ -33,7 +33,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)date.1 8.3 (Berkeley) 4/28/95
-.\" $Id: date.1,v 1.17 1997/08/30 11:06:35 jmg Exp $
+.\" $Id: date.1,v 1.18 1997/09/13 16:01:27 wosch Exp $
.\"
.Dd November 17, 1993
.Dt DATE 1
@@ -46,7 +46,7 @@
.Op Fl d Ar dst
.Op Fl r Ar seconds
.Op Fl t Ar minutes_west
-.Op Fl nu
+.Op Fl nsu
.Op Cm + Ns Ar format
.Op Fl v Ar [+|-]val[ymwdHM]
.Ar ...
@@ -95,6 +95,9 @@ from setting the time for other than the current machine.
Print out the date and time in
.Ar seconds
from the Epoch.
+.It Fl s
+Single-line print - don't print final linefeed character, useful for
+adding dated lines to logfiles generated by shell scripts.
.It Fl t
Set the kernel's value for minutes west of
.Tn GMT .
OpenPOWER on IntegriCloud