From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#52934: format-time-string year error Date: Sun, 02 Jan 2022 09:32:49 +0200 Message-ID: <83r19qegny.fsf@gnu.org> References: "" <83zgofdwyw.fsf@gnu.org> <874k6n6qsa.fsf@igel.home> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25006"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 52934-done@debbugs.gnu.org, schwab@linux-m68k.org To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 02 08:34:58 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 1n3vOL-0006Hu-W2 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 Jan 2022 08:34:58 +0100 Original-Received: from localhost ([::1]:49956 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n3vOK-0002DD-1Y for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 Jan 2022 02:34:56 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37562) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3vMU-0002Co-R2 for bug-gnu-emacs@gnu.org; Sun, 02 Jan 2022 02:33:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48310) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n3vMU-0001Q8-IT for bug-gnu-emacs@gnu.org; Sun, 02 Jan 2022 02:33:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n3vMU-0003FA-Dg for bug-gnu-emacs@gnu.org; Sun, 02 Jan 2022 02:33:02 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Jan 2022 07:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 52934 X-GNU-PR-Package: emacs Mail-Followup-To: 52934@debbugs.gnu.org, eliz@gnu.org, david@ngdr.net Original-Received: via spool by 52934-done@debbugs.gnu.org id=D52934.164110877712452 (code D ref 52934); Sun, 02 Jan 2022 07:33:02 +0000 Original-Received: (at 52934-done) by debbugs.gnu.org; 2 Jan 2022 07:32:57 +0000 Original-Received: from localhost ([127.0.0.1]:59855 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3vMP-0003Em-BS for submit@debbugs.gnu.org; Sun, 02 Jan 2022 02:32:57 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36782) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3vMN-0003EZ-3s for 52934-done@debbugs.gnu.org; Sun, 02 Jan 2022 02:32:55 -0500 Original-Received: from [2001:470:142:3::e] (port=51092 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3vMG-0001FU-Sm; Sun, 02 Jan 2022 02:32:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=uRmdRBoZ8LzkDzY0GDCG2Oug4eKiH1BA3iIEwx87HqM=; b=NzhkTxnfAeRi TtF/c7y/TUHmwxd4pnqelIiT510yxu0naAGjN/SzbRrrE5lInA1snuNtAdUwJKN4k/xyLhJZ3780G lnTS1uNFG3F6BgvBasAP5wH/HezqwWIFzaRMEKAWt1FA7E9OniD3IS2y9pSkEO4ZQP2VmjgT/S4uK 7uHgnpvZME5NOb6IgNO7A/BASDPeg8xYuuxXJmsbUy5ZU9f/+tvErYA0USjyBafIckApynyL0FkNM V7Vc5cHlRgW6U3Gms8PukPP87ykibYZFZy+KsCqp3oortPRoV2XYUMkG0PF9kZWpCPGfjLrHktXbo bA2AH83rY9+/Rva/JZx21Q==; Original-Received: from [87.69.77.57] (port=4266 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3vMG-00012D-SF; Sun, 02 Jan 2022 02:32:49 -0500 In-Reply-To: (david@ngdr.net) 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:223533 Archived-At: > Date: Sat, 01 Jan 2022 16:01:21 -0700 > From: > Cc: Eli Zaretskii , <52934@debbugs.gnu.org> > > 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. I enhanced the documentation, thanks. Pointing to the ISO standard would not be useful, since it is not freely available, so I said something about the rules instead. I'm therefore closing this bug.