Module Name:    src
Committed By:   kre
Date:           Tue Sep 17 10:08:38 UTC 2024

Modified Files:
        src/bin/date: date.1

Log Message:
Note that the order in which the -u and -d options are given matters.


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/bin/date/date.1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/bin/date/date.1
diff -u src/bin/date/date.1:1.54 src/bin/date/date.1:1.55
--- src/bin/date/date.1:1.54	Wed May 31 18:04:00 2023
+++ src/bin/date/date.1	Tue Sep 17 10:08:38 2024
@@ -1,4 +1,4 @@
-.\"	$NetBSD: date.1,v 1.54 2023/05/31 18:04:00 uwe Exp $
+.\"	$NetBSD: date.1,v 1.55 2024/09/17 10:08:38 kre Exp $
 .\"
 .\" Copyright (c) 1980, 1990, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -32,7 +32,7 @@
 .\"
 .\"     @(#)date.1	8.3 (Berkeley) 4/28/95
 .\"
-.Dd May 31, 2023
+.Dd September 17, 2024
 .Dt DATE 1
 .Os
 .Sh NAME
@@ -131,6 +131,26 @@ from the Epoch.
 Display or set the date in UTC (universal) time.
 .El
 .Pp
+Note the
+.Fl d
+and
+.Fl u
+options are applied when encountered, hence specifying
+.Fl u
+before
+.Fl d
+will cause the
+.Ar date
+to be parsed as coordinated universal time, by default,
+whereas if
+.Fl u
+is specified after
+.Fl d
+the
+.Ar date
+will be parsed using the default timezone, then
+output will be generated in UTC.
+.Pp
 An operand with a leading plus
 .Pq Cm +
 sign signals a user-defined format

Reply via email to