[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [FEATURE REQUEST] Timezone support in org-mode datestamps and org-ag
From: |
Ihor Radchenko |
Subject: |
Re: [FEATURE REQUEST] Timezone support in org-mode datestamps and org-agenda |
Date: |
Wed, 18 Jan 2023 09:29:37 +0000 |
Jean Louis <bugs@gnu.support> writes:
> ...
> Should be part of C library to observe those things.
Sure. My previous proposals are all relying on `encode-time' which uses
time.h from system libraries and utilizing TZDB that is taking care
about all this insanity.
We, however, might need to be careful about applying date increments. In
`org-read-date' and `org-timestamp-change', which are implemented in
Elisp without considering these complexities. (maybe also other
functions; these are just the ones I can think about)
What should we do when:
1. It is close to DST transition 2:59 -> 2:00 -> 2:01 -> ... -> 2:59 -> 3:00
and the users asks to create a timestamp +1h from now
or, worse, a timestamp +1h from now in a different time zone
2. A user asks +1w date shift and the time zone has a 1-day jump during DST?
what about +7d? +1d?
3. What will be +1d 2:30am timestamp refer to when there DST transition
as in (1)?
--
Ihor Radchenko // yantar92,
Org mode contributor,
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>
- Re: UTC or not UTC for timestamps in the past ([FEATURE REQUEST] Timezone support in org-mode), (continued)
- Re: [FEATURE REQUEST] Timezone support in org-mode datestamps and org-agenda, Max Nikulin, 2023/01/18
- Re: [FEATURE REQUEST] Timezone support in org-mode datestamps and org-agenda, Ihor Radchenko, 2023/01/17
- Re: [FEATURE REQUEST] Timezone support in org-mode datestamps and org-agenda, Robert Horn, 2023/01/19
- Re: [FEATURE REQUEST] Timezone support in org-mode datestamps and org-agenda, Alexander Adolf, 2023/01/19
- Re: [FEATURE REQUEST] Timezone support in org-mode datestamps and org-agenda, Alexander Adolf, 2023/01/19
- Re: [FEATURE REQUEST] Timezone support in org-mode datestamps and org-agenda, Jean Louis, 2023/01/17
- Re: [FEATURE REQUEST] Timezone support in org-mode datestamps and org-agenda,
Ihor Radchenko <=
- Re: [FEATURE REQUEST] Timezone support in org-mode datestamps and org-agenda, Jean Louis, 2023/01/18
- Re: [FEATURE REQUEST] Timezone support in org-mode datestamps and org-agenda, Tim Cross, 2023/01/18
- Re: [FEATURE REQUEST] Timezone support in org-mode datestamps and org-agenda, Ihor Radchenko, 2023/01/19
- Re: [FEATURE REQUEST] Timezone support in org-mode datestamps and org-agenda, Max Nikulin, 2023/01/17
- Re: [FEATURE REQUEST] Timezone support in org-mode datestamps and org-agenda, Ihor Radchenko, 2023/01/17
- Re: [FEATURE REQUEST] Timezone support in org-mode datestamps and org-agenda, Jean Louis, 2023/01/18
- Re: [FEATURE REQUEST] Timezone support in org-mode datestamps and org-agenda, Jean Louis, 2023/01/18
- Re: [FEATURE REQUEST] Timezone support in org-mode datestamps and org-agenda, Max Nikulin, 2023/01/20
- Re: [FEATURE REQUEST] Timezone support in org-mode datestamps and org-agenda, Alexander Adolf, 2023/01/19
- Re: [FEATURE REQUEST] Timezone support in org-mode datestamps and org-agenda, Tim Cross, 2023/01/16