On 5/29/22 06:10, Lars Ingebrigtsen wrote: > Paul Eggert writes: > >> With that in mind, here are three suggestions. >> >> 1. decoded-time-dst should return -1, instead of nil, when given a >> 6-element list, since nil means standard time and -1 means DST is >> unknown. > > I think that sounds correct. I looked into that, and since decoded-time-dst is defined by cl-defstruct it's not easy to change how it works. For now, I just documented the glitch; see the 3rd attached patch. I also installed the 1st attached patch which mentions that Emacs's decoded dst flag differs from that of Common Lisp, and the 2nd attached patch which makes iso8601 parsing compatible with what we've discussed here by having it return -1 for unknown DST flags. >> > 2. make-decoded-time should generate a six-element list unless given a >> > DST or ZONE arg. > > I don't think we should do this. OK, I left that alone.