From: Nick Dokos <nicholas.dokos@hp.com>
To: Tassilo Horn <tassilo@member.fsf.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: Setting recurring deadlines
Date: Mon, 09 Feb 2009 17:32:04 -0500 [thread overview]
Message-ID: <22773.1234218724@alphaville.usa.hp.com> (raw)
In-Reply-To: Message from Tassilo Horn <tassilo@member.fsf.org> of "Mon, 09 Feb 2009 22:07:39 +0100." <87wsbz5nfo.fsf@thinkpad.tsdh.de>
Tassilo Horn <tassilo@member.fsf.org> wrote:
> Manish <mailtomanish.sharma@gmail.com> writes:
>
> >> I am having trouble with something pretty basic. I am trying to setup
> >> a recurring deadline on the last day of every month. However, when I
> >> set it as <2009-02-28 +1m>, the next deadline shows up at 2009-03-28,
> >> rather than 31st March.
> >>
> >> I don't use appt/diary. Is there a way to do this in org-mode?
> >
> > Currently not possible to the best of my knowledge. IMHO, including
> > via diary seems to be a reasonable workaround.
>
> I was curious how to get that done, but I couldn't find a diary for
> "each last day of a month" in diary, too. "Each second thursday in a
> month" is on emacswiki, but all those complex dates I found are wired to
> a specific day of the week...
>
"Bah, how hard can that be?" - famous last words, now eaten (I did choke
on them along the way) ...
Here's my attempt (tested *very* lightly):
&%%(let ((lastday (calendar-last-day-of-month (calendar-extract-month date)
(calendar-extract-year date)))
(day (calendar-extract-day date)))
(= day lastday)) last day of month
next prev parent reply other threads:[~2009-02-09 22:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-09 12:18 Setting recurring deadlines Varnit Suri
2009-02-09 14:33 ` Manish
2009-02-09 21:07 ` Tassilo Horn
2009-02-09 21:37 ` Carsten Dominik
2009-02-09 22:32 ` Nick Dokos [this message]
2009-02-10 9:03 ` Tassilo Horn
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=22773.1234218724@alphaville.usa.hp.com \
--to=nicholas.dokos@hp.com \
--cc=emacs-orgmode@gnu.org \
--cc=tassilo@member.fsf.org \
/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).