diff options
author | Mateusz Piotrowski <0mp@FreeBSD.org> | 2021-11-03 11:59:49 +0000 |
---|---|---|
committer | Mateusz Piotrowski <0mp@FreeBSD.org> | 2021-11-07 17:55:22 +0000 |
commit | 014ae00ef6edca2687d618e0bda138086a1e1230 (patch) | |
tree | 592978b2af494d132db11edcb65e16bc419a58b7 | |
parent | 5bee300aefb1f9d3ec9a5cd2150b1b5c7374f3ae (diff) | |
download | src-014ae00ef6edca2687d618e0bda138086a1e1230.tar.gz src-014ae00ef6edca2687d618e0bda138086a1e1230.zip |
date: Capitalize seconds string in synopses
This makes it consistent with other date(1) implementations. Also, it
feels more consistent since hours and minutes are already represented as
HH and MM respectively.
MFC after: 3 days
(cherry picked from commit c537bf9d5903d0689321f83691341c93b5919172)
-rw-r--r-- | bin/date/date.1 | 6 | ||||
-rw-r--r-- | bin/date/date.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/bin/date/date.1 b/bin/date/date.1 index 7dcf77c88b39..f9ced543c0d8 100644 --- a/bin/date/date.1 +++ b/bin/date/date.1 @@ -71,7 +71,7 @@ .Ar mm Oc .Ar dd Oc .Ar HH -.Oc Ar MM Op Cm \&. Ar ss +.Oc Ar MM Op Cm \&. Ar SS .Sm on .Op Cm + Ns Ar output_fmt .\" Set time with the user-provided input format. @@ -123,7 +123,7 @@ provided rather than using the default .Ar mm Oc .Ar dd Oc .Ar HH -.Oc Ar MM Op Cm \&. Ar ss +.Oc Ar MM Op Cm \&. Ar SS .Sm on format. Parsing is done using @@ -330,7 +330,7 @@ Day, a number from 1 to 31. Hour, a number from 0 to 23. .It Ar MM Minutes, a number from 0 to 59. -.It Ar ss +.It Ar SS Seconds, a number from 0 to 60 (59 plus a potential leap second). .El diff --git a/bin/date/date.c b/bin/date/date.c index 87f3dad28bd6..4dc5df0dccfc 100644 --- a/bin/date/date.c +++ b/bin/date/date.c @@ -387,7 +387,7 @@ usage(void) " " "[-r filename|seconds] [-v[+|-]val[y|m|w|d|H|M|S]]", " " - "[[[[[[cc]yy]mm]dd]HH]MM[.ss] | new_date] [+output_fmt]" + "[[[[[[cc]yy]mm]dd]HH]MM[.SS] | new_date] [+output_fmt]" ); exit(1); } |