GNU bug report logs - #78096
31.0.50; calendar-iso-to-absolute and %W time string format are inconsistent

Previous Next

Package: emacs;

Reported by: Ihor Radchenko <yantar92 <at> posteo.net>

Date: Sun, 27 Apr 2025 15:30:02 UTC

Severity: normal

Found in version 31.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 78096 <at> debbugs.gnu.org (full text, mbox):

From: Ihor Radchenko <yantar92 <at> posteo.net>
To: Stephen Berman <stephen.berman <at> gmx.net>
Cc: 78096 <at> debbugs.gnu.org
Subject: Re: bug#78096: 31.0.50; calendar-iso-to-absolute and %W time string
 format are inconsistent
Date: Mon, 28 Apr 2025 16:05:43 +0000
Stephen Berman <stephen.berman <at> gmx.net> writes:

> The doc string of `format-time-string' says:
>
> %U is the week number starting on Sunday, %W starting on Monday,
>  %V the week number according to ISO 8601.
>
> (format-time-string
>   "%Y-%m-%d W%V"
>   (encode-time (parse-time-string "2025-01-06 00:00")))
> => "2025-01-06 W02"

That indeed explains it - %W and %V are apparently not the same and
`calendar-iso-to-absolute' is closer to %V.

> Maybe just starting the week on Monday does not guarantee that the
> result is an ISO commercial date?

Unless you see some error I am not seeing here, this is probably not a
bug, but my misunderstanding.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>




This bug report was last modified 15 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.