bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#55635: `make-decoded-time' incorrectly sets DST to nil, it should be


From: Maxim Nikulin
Subject: bug#55635: `make-decoded-time' incorrectly sets DST to nil, it should be -1 (guess)
Date: Sat, 28 May 2022 23:31:43 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1

On 28/05/2022 17:41, Lars Ingebrigtsen wrote:
Paul Eggert writes:

To try to lessen the confusion I installed the attached, which fixes
the reported bug so I'll close the bug report. Please feel free to
revert if you see a problem with it (I'm just trying to save time here
by being bold).

Thanks; I think that looks like the correct thing here.

Thank you, with the committed changes my examples work as I expect.

Paul, do you have any comment concerning the last part of the bug report?

`decoded-time-add' docstring:
>   (decoded-time-add (decode-time) (make-decoded-time :month 2))

I think, it is confusing that `make-decoded-time' is used to create timestamps *and* time intervals. They are different types, for example sum of intervals is meaningful (despite may be ambiguous) while there is no point to add timestamps. Daylight saving time and timezone are something alien for intervals. Though I am unsure if it is reasonable to mark intervals by e.g. 'time-interval symbol or to make these types distinct by some other way.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]