From nobody Tue Jun 28 03:54:24 2022 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 928258647B0; Tue, 28 Jun 2022 03:54:24 +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 4LX9hJ2vTVz3j60; Tue, 28 Jun 2022 03:54:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656388464; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/8abMmLytZNCmmshKlS/tgGEopbm0xBCIEdzn1CA9vc=; b=w48W/q5JkNjvzYhYbLIBIA6Xohm4+D5pUPQg0N2gMIDRsfe/6P5j2i3AGpcssXGGD1fn3I jgK6lVArrrUVQJBWUP1C4HlW5+put7PJBgewkyHAzqP/vWlmoguRlCzE6/4zvWlqSjWB0O 6ti9ZdPjxUpiQResayTBWDkuxTHU9Gbp7ux4yTF014E2Hdt7ZLzxDp7XSs7wl+P7qw2WAk tnFmWGzQoMp/7mK6CpuH7LJK3St0Y+9C5T1bwdyaLsbJadYzkOhCmwoF6s7DUqLjgiy4IO p6s8eDC6fFQW4oZ1+TJ91vnxra0kZPFvJa8eV40pz/RtTtvbemxsdG/LsVzy3g== 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 4391315C01; Tue, 28 Jun 2022 03:54:24 +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 25S3sOXE001634; Tue, 28 Jun 2022 03:54:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25S3sOr9001633; Tue, 28 Jun 2022 03:54:24 GMT (envelope-from git) Date: Tue, 28 Jun 2022 03:54:24 GMT Message-Id: <202206280354.25S3sOr9001633@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kyle Evans Subject: git: 9fcac31db460 - main - date: attempt to more accurately describe year limitations with -v 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: kevans X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9fcac31db4602518e1337b1455581ffcae9348a5 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656388464; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/8abMmLytZNCmmshKlS/tgGEopbm0xBCIEdzn1CA9vc=; b=HWb0D7hC4djA6IJq1C7SBV6e0WWrpFkpucyDWZx9NoDnqU0ee9v4utvYgMPH97NkgG3sK+ R243/4GBtyi7dzgkDhRQI7hd9ihXwhFfZY1QJQnbVJlacCjVcSXx8Mct9/BucTnxxZZFpX t+9k6IL7BGmJdUHG0fGxaDMXmiwP9WtwlfiWdIuz3xKx0O1yIUrfzGaBbCzYZhBQ9Dpgdw LuXiig5H1nJZOQQNnFra/bonnkPCJg/gLY2KzYqagZD1bMHeZhugNHJwetJlv6a8esYC0F 2pp6eFejy42NUxRY1IMprHV8wgUED2VDywzvcwOK6RcUuFVwboFeQSb/q04kUw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656388464; a=rsa-sha256; cv=none; b=OkHTazMtYr3xnhKMePHsbZl+5CIZZRWKcbQjGr+vzLddt1cDRgMa77udl5Z4W1EABHsiUb rBu2Lfyk9ooIp60k0e3kNSBCaf24z/koX9y0r14j31oecK2ytYkwRnsFfDyTHcicJniN2d 7nQrQijMl1fRqJvEoZbk19R3D9ndSTQ+R4SlQ4qwq0dZum2t0zqOzZx8mL7ZtueZlj73Hy mP7adTAR3HQOgfqGv1CMwydunbPuO9jS+eUefimp9IJozZWH9+rEqs/uVNTUIJRRJ7ACFU Tr+8MhfkWtRsOJMFArdMm+K844xd+iM7UC8iqQ7u8qY8RZ0BavpWsIjZrruOjA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=9fcac31db4602518e1337b1455581ffcae9348a5 commit 9fcac31db4602518e1337b1455581ffcae9348a5 Author: Kyle Evans AuthorDate: 2022-06-28 03:54:13 +0000 Commit: Kyle Evans CommitDate: 2022-06-28 03:54:13 +0000 date: attempt to more accurately describe year limitations with -v The previous description was both incorrect and incomplete in its description -- the 2038 limit doesn't apply on !i386 platforms, and it didn't note that values above 100 are accepted and interpreted differently. Further, it didn't note that absolute years are accepted. Reviewed by: pauamma_gundo.com (manpages) Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D35360 --- bin/date/date.1 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/bin/date/date.1 b/bin/date/date.1 index 7254e7e83e3b..da2dadd13c00 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 November 3, 2021 +.Dd May 31, 2022 .Dt DATE 1 .Os .Sh NAME @@ -227,7 +227,15 @@ seconds are in the range 0-59, minutes are in the range 0-59, hours are in the range 0-23, month days are in the range 1-31, week days are in the range 0-6 (Sun-Sat), months are in the range 1-12 (Jan-Dec) -and years are in the range 80-38 or 1980-2038. +and years are in a limited range depending on the platform. +.Pp +On i386, years are in the range 69-38 representing 1969-2038. +On every other platform, years 0-68 are accepted and represent 2000-2068, and +69-99 are accepted and represent 1969-1999. +In both cases, years between 100 and 1900 (both included) are accepted and +interpreted as relative to 1900 of the Gregorian calendar with a limit of 138 on +i386 and a much higher limit on every other platform. +Years starting at 1901 are also accepted, and are interpreted as absolute years. .Pp If .Ar val