From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#52934: format-time-string year error Date: Sat, 01 Jan 2022 23:21:25 +0100 Message-ID: <874k6n6qsa.fsf@igel.home> References: <83zgofdwyw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4694"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.90 (gnu/linux) Cc: 52934@debbugs.gnu.org, david@ngdr.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 01 23:22:18 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 1n3mlW-000112-9r for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 01 Jan 2022 23:22:18 +0100 Original-Received: from localhost ([::1]:33082 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n3mlU-00011n-T8 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 01 Jan 2022 17:22:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60066) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3mlG-00011N-M3 for bug-gnu-emacs@gnu.org; Sat, 01 Jan 2022 17:22:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47973) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n3mlG-0002gb-Co for bug-gnu-emacs@gnu.org; Sat, 01 Jan 2022 17:22:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n3mlG-00009p-5X for bug-gnu-emacs@gnu.org; Sat, 01 Jan 2022 17:22:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Jan 2022 22:22: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.1641075692542 (code B ref 52934); Sat, 01 Jan 2022 22:22:02 +0000 Original-Received: (at 52934) by debbugs.gnu.org; 1 Jan 2022 22:21:32 +0000 Original-Received: from localhost ([127.0.0.1]:59519 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3mkl-00008g-Me for submit@debbugs.gnu.org; Sat, 01 Jan 2022 17:21:31 -0500 Original-Received: from mail-out.m-online.net ([212.18.0.9]:33993) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3mkj-00008T-FI for 52934@debbugs.gnu.org; Sat, 01 Jan 2022 17:21:30 -0500 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4JRGgp5pgGz1r7lS; Sat, 1 Jan 2022 23:21:26 +0100 (CET) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4JRGgp42Fpz1qqkB; Sat, 1 Jan 2022 23:21:26 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id rXpE5kjiSl3P; Sat, 1 Jan 2022 23:21:25 +0100 (CET) X-Auth-Info: WyR9hPAoeQzGCFMKrDS7m0JME45GKs0Sp+nUM6TIJfoVZURJ+7cYVtqy/cPyD53j Original-Received: from igel.home (ppp-46-244-189-188.dynamic.mnet-online.de [46.244.189.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Sat, 1 Jan 2022 23:21:25 +0100 (CET) Original-Received: by igel.home (Postfix, from userid 1000) id 101AB2C3AC9; Sat, 1 Jan 2022 23:21:25 +0100 (CET) X-Yow: Why don't you ever enter any CONTESTS, Marvin?? Don't you know your own ZIPCODE? In-Reply-To: <83zgofdwyw.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 01 Jan 2022 22:25:59 +0200") 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:223524 Archived-At: On Jan 01 2022, Eli Zaretskii wrote: >> Date: Sat, 01 Jan 2022 13:11:56 -0700 >> From: >> >> ;; I ran this in the *scratch* buffer at lunch time in Denver. >> ;; The year is not right. >> (defun doit () >> (format "%s\n%s\n%s" >> (current-time) >> (format-time-string "%d %b") >> (format-time-string "%R %G"))) >> (doit) >> "(25040 45621 647344 602000) >> 01 Jan >> 12:57 2021" > > The doc string of format-time-string says: > > %G is the year corresponding to the ISO week > > Isn't it true that the ISO week is still in 2021 today? Week 52 of 2021 started on 2021-12-27, and ends on 2022-01-02. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."