[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [POLL] Dealing with +1m/y repeaters when jumping to impossible date
From: |
Ihor Radchenko |
Subject: |
Re: [POLL] Dealing with +1m/y repeaters when jumping to impossible date (should 05-31 +1m be 07-01 or 06-30?) |
Date: |
Sat, 18 May 2024 14:35:55 +0000 |
Stefan Nobis <stefan-ml@snobis.de> writes:
> Ihor Radchenko <yantar92@posteo.net> writes:
>
>> It does not have to be lost. We can adjust the repeater function to
>> handle negative dates/months specially, so that
>
>> [2024-05--1 +1m] -> [2024-06--1 +1m]
>
> Hmmm... I do not like, that here the wrong month is displayed. On a
> cursory look, it's easy to assume the wrong month. But it is an
> interesting option and maybe misreading this only my personal problem
> (and "--1" stands out a little bit, so it is recognizable).
Technically, nothing stops us from interpreting 2024-05--1 as "last day
of month 05". But the nice thing about interpreting it as previous month
is that it works "magically" with non-Org Elisp APIs like
`parse-time-string':
(parse-time-string "2024-09--1") is able to parse the date.
--
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: [POLL] Dealing with +1m/y repeaters when jumping to impossible date (should 05-31 +1m be 07-01 or 06-30?) (was: Leap-year bug with todo-cycle), Ihor Radchenko, 2024/05/13
- Re: [POLL] Dealing with +1m/y repeaters when jumping to impossible date (should 05-31 +1m be 07-01 or 06-30?), Max Nikulin, 2024/05/14
- Re: [POLL] Dealing with +1m/y repeaters when jumping to impossible date (should 05-31 +1m be 07-01 or 06-30?), Ihor Radchenko, 2024/05/14
- Re: [POLL] Dealing with +1m/y repeaters when jumping to impossible date (should 05-31 +1m be 07-01 or 06-30?), Stefan Nobis, 2024/05/14
- Re: [POLL] Dealing with +1m/y repeaters when jumping to impossible date (should 05-31 +1m be 07-01 or 06-30?), Ihor Radchenko, 2024/05/18
- Re: [POLL] Dealing with +1m/y repeaters when jumping to impossible date (should 05-31 +1m be 07-01 or 06-30?), Stefan Nobis, 2024/05/18
- Re: [POLL] Dealing with +1m/y repeaters when jumping to impossible date (should 05-31 +1m be 07-01 or 06-30?), Ihor Radchenko, 2024/05/18
- Re: [POLL] Dealing with +1m/y repeaters when jumping to impossible date (should 05-31 +1m be 07-01 or 06-30?), Stefan Nobis, 2024/05/18
- Re: [POLL] Dealing with +1m/y repeaters when jumping to impossible date (should 05-31 +1m be 07-01 or 06-30?),
Ihor Radchenko <=
- Re: [POLL] Dealing with +1m/y repeaters when jumping to impossible date (should 05-31 +1m be 07-01 or 06-30?), Max Nikulin, 2024/05/15
- Re: [POLL] Dealing with +1m/y repeaters when jumping to impossible date (should 05-31 +1m be 07-01 or 06-30?), Ihor Radchenko, 2024/05/18
- Re: [POLL] Dealing with +1m/y repeaters when jumping to impossible date (should 05-31 +1m be 07-01 or 06-30?), Max Nikulin, 2024/05/16
- Re: [POLL] Dealing with +1m/y repeaters when jumping to impossible date (should 05-31 +1m be 07-01 or 06-30?), Ihor Radchenko, 2024/05/18