From: "Quiliro Ordóñez" <quiliro@riseup.net>
To: Renato Pontefice <renato.pontefice@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: One thing each 3 days but maximum 10
Date: Mon, 31 Oct 2022 10:01:09 +0000 [thread overview]
Message-ID: <be4ad339ddfe4f495f92fd922fa667f4@riseup.net> (raw)
In-Reply-To: <Y19VvPrs/as9tHLt@protected.localdomain>
El 2022-10-30 23:57, Jean Louis escribió:
> * 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>
Isn't it much easier to copy the first one and change the day, instead
of going through the learning curve of database administration? Of
course that, if you have a bazooka, you can even write a love letter
with it. But would it be right tool?
next prev parent reply other threads:[~2022-10-31 10:01 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-30 16:08 One thing each 3 days but maximum 10 Renato Pontefice
2022-10-31 4:26 ` Ihor Radchenko
2022-10-31 4:57 ` Jean Louis
2022-10-31 5:16 ` Ihor Radchenko
2022-10-31 6:08 ` Jean Louis
2022-10-31 6:27 ` Ihor Radchenko
2022-10-31 17:14 ` Jean Louis
2022-11-01 8:40 ` Ihor Radchenko
2022-10-31 10:01 ` Quiliro Ordóñez [this message]
2022-10-31 17:56 ` Jean Louis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=be4ad339ddfe4f495f92fd922fa667f4@riseup.net \
--to=quiliro@riseup.net \
--cc=emacs-orgmode@gnu.org \
--cc=renato.pontefice@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).