|
From: | Max Nikulin |
Subject: | Re: [POLL] Proposed syntax for timestamps with time zone info (was: [FEATURE REQUEST] Timezone support in org-mode datestamps and org-agenda) |
Date: | Thu, 2 Feb 2023 10:05:47 +0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 |
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 2021Africa/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
[Prev in Thread] | Current Thread | [Next in Thread] |