* Renato Pontefice <[email protected]> [2022-10-30 19:11]:
> I have to take a pill each 3 days, but for max 10 times.
> So I set a TODO pill >2022-10-28 +3d> and each 3 days my calendar tell me
> that I have to take the pill. But is possible to say 1/10; 2/10; 3/10 etc?
> I nean to show how many pill I have already take?
Use PostgreSQL to give you schedule:
#+BEGIN_SRC sql :engine postgresql :results value raw
SELECT '** TODO Take pill again
SCHEDULED: <' || generate_series('2022-10-28', '2022-11-26', '3
day'::interval)::date || E'>\n'
AS "* My treatement";
#+END_SRC
#+RESULTS:
* My treatement
** TODO Take pill again
SCHEDULED: <2022-10-28>
** TODO Take pill again
SCHEDULED: <2022-10-31>
** TODO Take pill again
SCHEDULED: <2022-11-03>
** TODO Take pill again
SCHEDULED: <2022-11-06>
** TODO Take pill again
SCHEDULED: <2022-11-09>
** TODO Take pill again
SCHEDULED: <2022-11-12>
** TODO Take pill again
SCHEDULED: <2022-11-15>
** TODO Take pill again
SCHEDULED: <2022-11-18>
** TODO Take pill again
SCHEDULED: <2022-11-21>
** TODO Take pill again
SCHEDULED: <2022-11-24>
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/