[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#78096: 31.0.50; calendar-iso-to-absolute and %W time string format a
From: |
Ihor Radchenko |
Subject: |
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@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>