summaryrefslogtreecommitdiffstats
path: root/bin/date/date.1
diff options
context:
space:
mode:
authordumbbell <dumbbell@FreeBSD.org>2014-05-03 13:19:11 +0000
committerdumbbell <dumbbell@FreeBSD.org>2014-05-03 13:19:11 +0000
commitee189cb17ad4b2bd2392de300cc6d4b7d42ac94f (patch)
treea82d19a5d354c005a472aa6ecde79e904875a577 /bin/date/date.1
parent1029f2ba6f80ade5417d48afc23cc015cf08b820 (diff)
downloadFreeBSD-src-ee189cb17ad4b2bd2392de300cc6d4b7d42ac94f.zip
FreeBSD-src-ee189cb17ad4b2bd2392de300cc6d4b7d42ac94f.tar.gz
date(1): Add "-R" flag to use RFC 2822 date and time output format [MFC]
As stated in the man page, this is equivalent to use "%a, %d %b %Y %T %z" as the output format while LC_TIME is set to the "C" locale. This is compatible with date(1) from the GNU core utilities. This is an MFC of r264968 and r264970.
Diffstat (limited to 'bin/date/date.1')
-rw-r--r--bin/date/date.116
1 files changed, 13 insertions, 3 deletions
diff --git a/bin/date/date.1 b/bin/date/date.1
index d1cbb44..5e9e664 100644
--- a/bin/date/date.1
+++ b/bin/date/date.1
@@ -32,7 +32,7 @@
.\" @(#)date.1 8.3 (Berkeley) 4/28/95
.\" $FreeBSD$
.\"
-.Dd June 3, 2010
+.Dd April 26, 2014
.Dt DATE 1
.Os
.Sh NAME
@@ -40,7 +40,7 @@
.Nd display or set date and time
.Sh SYNOPSIS
.Nm
-.Op Fl ju
+.Op Fl jRu
.Op Fl r Ar seconds
.Oo
.Fl v
@@ -58,7 +58,7 @@
.Ar MM Op Ar .ss
.Sm on
.Nm
-.Op Fl jnu
+.Op Fl jnRu
.Fl f Ar input_fmt new_date
.Op Cm + Ns Ar output_fmt
.Nm
@@ -130,6 +130,16 @@ The
.Fl n
option suppresses this behavior and causes the time to be set only on the
current machine.
+.It Fl R
+Use RFC 2822 date and time output format. This is equivalent to use
+.Dq Li %a, %d %b %Y \&%T %z
+as
+.Ar output_fmt
+while
+.Ev LC_TIME
+is set to the
+.Dq C
+locale .
.It Fl r Ar seconds
Print the date and time represented by
.Ar seconds ,
OpenPOWER on IntegriCloud