[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#52934: format-time-string year error
From: |
Eli Zaretskii |
Subject: |
bug#52934: format-time-string year error |
Date: |
Sat, 01 Jan 2022 22:25:59 +0200 |
> Date: Sat, 01 Jan 2022 13:11:56 -0700
> From: <david@ngdr.net>
>
> ;; 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?