emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: One thing each 3 days but maximum 10


From: Jean Louis
Subject: Re: One thing each 3 days but maximum 10
Date: Mon, 31 Oct 2022 07:57:32 +0300
User-agent: Mutt/2.2.7+37 (a90f69b) (2022-09-02)

* Renato Pontefice <renato.pontefice@gmail.com> [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/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]