GNU bug report logs -
#78096
31.0.50; calendar-iso-to-absolute and %W time string format are inconsistent
Previous Next
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
View this message in rfc822 format
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 14 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.