From nobody Sun Sep 18 06:27:06 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 4MVdBf3vZQz4c38r; Sun, 18 Sep 2022 06:27:06 +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 4MVdBf1ftDz3Y3t; Sun, 18 Sep 2022 06:27:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663482426; 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=dyYIihV5MAlL0EZGFrwB1OImtNTw9saKlUAD/9zv3j0=; b=WEDNU7a9OZNy3MEBUNFQ0I+xscgs4VC/mgHfXpm0nR/9bThZlpfJaDxzZMRUCwjzrvlzA7 cXtOrbd3zuRrCDEvMI/ZiP0xyUqdF9gwPsUevLWooRwFsmghnS9aYpgJ04vQlZyc2jOS8W jMYt1qstpfwTNcV+wEpHVOu4TMpVSSXxxBvs1qKS6+X0srgAJaeSPp5woGspZmV1h7D/bd 5SZj0934iEvubomdBe2cj88CKL5vkSdtnbZpQ4pKSNpY+wRWyA51rfiaG1kDdpUCCn68by bkU1ISIifDeZxv+yWQ/kqDWXEhwSkMQHIeXXsvqTaKVw2ye79WaOjtLtmiHXLA== 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 4MVdBf0n32zxH7; Sun, 18 Sep 2022 06:27:06 +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 28I6R6OW067823; Sun, 18 Sep 2022 06:27:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 28I6R6EK067822; Sun, 18 Sep 2022 06:27:06 GMT (envelope-from git) Date: Sun, 18 Sep 2022 06:27:06 GMT Message-Id: <202209180627.28I6R6EK067822@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kyle Evans Subject: git: e683e1fc0fde - stable/13 - 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/stable/13 X-Git-Reftype: branch X-Git-Commit: e683e1fc0fdefcfbec0aa0f254c23950db41aa66 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663482426; 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=dyYIihV5MAlL0EZGFrwB1OImtNTw9saKlUAD/9zv3j0=; b=b2K1jQmaEHW9Ru+IUkoHDSnWwcsA///oLo66aLrcDv7UfexpI3B0Q7NgoFN8GG8luB7eWp rEz/jCnkjvAgsoQEbRLampH7WOapmUP2aoYiB50mYkjTR3AZgBqn5MNDTEYZgq1432H8sz pBhp4K9U+kEa2+ZJp3RObsWmj0Z9uJVHXQaDiyvt+HRnldvlGJwKHofZRDVM7QtWqt8AI4 M+hN5wiengrPmY9MmHs+yh04xkC8MaDixI2fyiI38yr00B+AY2XvWKXSbf92Q1DZ6u41n4 EK5i3weL0i6FTIHLlfvxEThJobQCQCO2syvtFZDFyHaHmbSBKEO69JCGMNGf5w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1663482426; a=rsa-sha256; cv=none; b=pWTXi8QFYiZZWBP7yhQu5pBvtun1PziPMNeVQMCovCuekTCT3ERRDK1y+8r0T10xoPpX4x z1Kiuhk9DsWFVdiPSrWk4k/i5qp6KEI7SOL4a5/Np5l1ArmthmsE1u7hhOcHx8KBsX8kRJ 6HDwj3VVuj3fKpNdWx7YurRpCZvMVhY36SpiadzPzjLTJrPgRrc+41C5aqjNGLhhEb6II0 P9r3eeuxXqDjr4qck+akGaT9B22Wz8+MOCcRkm9jNf6N0hKE6kYwR+iBUSKWJYPLNih/p2 yQXf9Zh4e5OzGXNw8iFKjhM4SuJB6DvK64qHZ6gNGKJP47Bwgb1iykaHTpU3DA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=e683e1fc0fdefcfbec0aa0f254c23950db41aa66 commit e683e1fc0fdefcfbec0aa0f254c23950db41aa66 Author: Kyle Evans AuthorDate: 2022-06-28 03:54:13 +0000 Commit: Kyle Evans CommitDate: 2022-09-18 06:26:39 +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. (cherry picked from commit 9fcac31db4602518e1337b1455581ffcae9348a5) --- 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 f9ced543c0d8..0fbc8b9097be 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 @@ -220,7 +220,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