From nobody Wed Nov 03 13:09:42 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id A80E6182F52B; Wed, 3 Nov 2021 13:09:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HknDQ3m8Vz4Yqv; Wed, 3 Nov 2021 13:09:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4E0BA18FEC; Wed, 3 Nov 2021 13:09:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1A3D9gaA041747; Wed, 3 Nov 2021 13:09:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1A3D9gm8041746; Wed, 3 Nov 2021 13:09:42 GMT (envelope-from git) Date: Wed, 3 Nov 2021 13:09:42 GMT Message-Id: <202111031309.1A3D9gm8041746@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Piotrowski <0mp@FreeBSD.org> Subject: git: c537bf9d5903 - main - date: Capitalize seconds string in synopses List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: 0mp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c537bf9d5903d0689321f83691341c93b5919172 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by 0mp (doc, ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=c537bf9d5903d0689321f83691341c93b5919172 commit c537bf9d5903d0689321f83691341c93b5919172 Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2021-11-03 11:59:49 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2021-11-03 13:09:36 +0000 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 --- bin/date/date.1 | 6 +++--- 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 4e60d34c1f86..0aaae1614327 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); }