On 01/02/2023 23:45, Ihor Radchenko wrote:
Note how `encode-time' TIME argument has both DST flag and the time zone
name:
(SECOND MINUTE HOUR DAY MONTH YEAR IGNORED DST ZONE)
DST is necessary exactly in the ambiguous situations like I described,
when we must know if day saving time is in effect or not __in addition__
to time zone name.
Warning: just be aware that sometimes DST is not enough to resolve
ambiguity. E.g. in the following example attempt to pass non-nil DST
signals an error:
zdump -v Africa/Juba | grep 2021
Africa/Juba Sun Jan 31 20:59:59 2021 UT = Sun Jan 31 23:59:59 2021 EAT
isdst=0 gmtoff=10800
Africa/Juba Sun Jan 31 21:00:00 2021 UT = Sun Jan 31 23:00:00 2021 CAT
isdst=0 gmtoff=7200