Date: Sun, 18 Sep 2022 06:27:06 GMT From: Kyle Evans <kevans@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: e683e1fc0fde - stable/13 - date: attempt to more accurately describe year limitations with -v Message-ID: <202209180627.28I6R6EK067822@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=e683e1fc0fdefcfbec0aa0f254c23950db41aa66 commit e683e1fc0fdefcfbec0aa0f254c23950db41aa66 Author: Kyle Evans <kevans@FreeBSD.org> AuthorDate: 2022-06-28 03:54:13 +0000 Commit: Kyle Evans <kevans@FreeBSD.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202209180627.28I6R6EK067822>