summaryrefslogtreecommitdiffstats
path: root/bin/date/date.1
diff options
context:
space:
mode:
authordumbbell <dumbbell@FreeBSD.org>2014-04-26 13:05:56 +0000
committerdumbbell <dumbbell@FreeBSD.org>2014-04-26 13:05:56 +0000
commitb117583987ce91f22f83463e1dce331caa3e5f57 (patch)
tree149add10f32a6e6d3dff2045fc84f4abb14a3f9b /bin/date/date.1
parent65493094e91edbf31efef2feb1d5f3abdb94ee90 (diff)
downloadFreeBSD-src-b117583987ce91f22f83463e1dce331caa3e5f57.zip
FreeBSD-src-b117583987ce91f22f83463e1dce331caa3e5f57.tar.gz
date(1): Add "-R" flag to use RFC 2822 date and time output format
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.
Diffstat (limited to 'bin/date/date.1')
-rw-r--r--bin/date/date.114
1 files changed, 12 insertions, 2 deletions
diff --git a/bin/date/date.1 b/bin/date/date.1
index d1cbb44..a4eddd1 100644
--- a/bin/date/date.1
+++ b/bin/date/date.1
@@ -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