From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.bugs Subject: bug#52934: format-time-string year error Date: Sat, 01 Jan 2022 16:01:21 -0700 Message-ID: References: "" <83zgofdwyw.fsf@gnu.org> <874k6n6qsa.fsf@igel.home> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24704"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Tuxedo/0.1 Cc: 52934@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 02 00:02:37 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n3nOX-0006J9-Hw for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 Jan 2022 00:02:37 +0100 Original-Received: from localhost ([::1]:46790 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n3nOV-0003xK-Qh for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 01 Jan 2022 18:02:35 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37090) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3nNy-0003x2-VB for bug-gnu-emacs@gnu.org; Sat, 01 Jan 2022 18:02:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47991) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n3nNy-0006Ta-9r for bug-gnu-emacs@gnu.org; Sat, 01 Jan 2022 18:02:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n3nNy-0001do-4L for bug-gnu-emacs@gnu.org; Sat, 01 Jan 2022 18:02:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Jan 2022 23:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52934 X-GNU-PR-Package: emacs Original-Received: via spool by 52934-submit@debbugs.gnu.org id=B52934.16410780866235 (code B ref 52934); Sat, 01 Jan 2022 23:02:02 +0000 Original-Received: (at 52934) by debbugs.gnu.org; 1 Jan 2022 23:01:26 +0000 Original-Received: from localhost ([127.0.0.1]:59537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3nNO-0001cV-KY for submit@debbugs.gnu.org; Sat, 01 Jan 2022 18:01:26 -0500 Original-Received: from mailoutbound3.frii.com ([216.17.187.71]:64666 helo=magic01.frii.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3nNL-0001cI-TY for 52934@debbugs.gnu.org; Sat, 01 Jan 2022 18:01:25 -0500 Original-Received: (qmail 27331 invoked from network); 1 Jan 2022 23:01:21 -0000 Original-Received: from localhost (HELO mail.frii.com) (david@ngdr.net@127.0.0.1) by magic01.frii.com with SMTP (bc52148c-6b56-11ec-b50b-5347fe17f1d7); Sat, 01 Jan 2022 16:01:21 -0700 Original-Received: from c-67-165-192-76.hsd1.co.comcast.net ([67.165.192.76]) by mail.frii.com with HTTP (HTTP/1.1 POST); Sat, 01 Jan 2022 16:01:21 -0700 In-Reply-To: <874k6n6qsa.fsf@igel.home> X-Sender: david@ngdr.net X-MagicMail-OS: MagicMail 4.1-Stable X-MagicMail-UUID: bc52148c-6b56-11ec-b50b-5347fe17f1d7 X-MagicMail-Authenticated: david@ngdr.net X-MagicMail-SourceIP: 127.0.0.1 X-MagicMail-RegexMatch: 2 X-MagicMail-EnvelopeFrom: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:223526 Archived-At: Now I have read about ISO 8601 in Wikipedia and, of course, your replies are correct; now I know that we are in week 52 of 2021. However, someone writing Emacs code to produce a timestamp for, e.g., .html code, does not see the need to study an ISO specification to avoid a tripwire that is not even obvious - the problem only occurs, if it occurs, in a few days of the year. Otherwise there is no reason to suspect that personal code is faulty: it will perform correctly, including under test, for about 360 days of the year. I should like to suggest a note in the Emacs Info documentation that warns the reader that ISO weeks do not map nicely into the calendar that the reader lives by. That would be helpful. I am not suggesting that the Emacs documentation should describe ISO 8601, only that it warns of the potential problems, and, ideally, gives a reference to a description of the standard. dajo