From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: Monthly events based on count of specific weekdays Date: Sun, 08 Nov 2009 06:58:29 -0500 Message-ID: References: <87ws214lpo.fsf@benfinney.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N76Pn-0002vL-DS for emacs-orgmode@gnu.org; Sun, 08 Nov 2009 06:58:39 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N76Pi-0002qZ-FX for emacs-orgmode@gnu.org; Sun, 08 Nov 2009 06:58:38 -0500 Received: from [199.232.76.173] (port=58991 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N76Pi-0002qM-8U for emacs-orgmode@gnu.org; Sun, 08 Nov 2009 06:58:34 -0500 Received: from out4.smtp.messagingengine.com ([66.111.4.28]:36940) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N76Ph-0003HO-J1 for emacs-orgmode@gnu.org; Sun, 08 Nov 2009 06:58:33 -0500 In-Reply-To: <87ws214lpo.fsf@benfinney.id.au> (Ben Finney's message of "Sun, 08 Nov 2009 16:41:39 +1100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ben Finney Cc: emacs-orgmode@gnu.org Ben Finney writes: > Howdy all, > > How can I set an event in Org mode that repeats every month, on a > specific weekday, on a week counted from the start of the month? > > For example: > > * every month on the first Tuesday of the month. > * every month on the third Sunday of the month. > * every first and third Wednesday of the month. > > Taking =E2=80=9Cfirst Tuesday of the month=E2=80=9D, if I set it this mon= th on > <2009-11-15 Sun>, it should next repeat on <2009-12-20 Sun> and so on > each month. These do not do what I want: > > * <2009-11-15 Sun +1m> > * <2009-11-08 Sun ++1m> > * <2009-11-08 Sun .+1m> > > Each of these next repeats on <2009-12-15 Tue>, the wrong date. > > How can I specify a repeating event to Org mode that achieves what I > described above? >From the org manual: ,----[8.1. Timestamps, deadlines, and scheduling] | DIARY-STYLE SEXP ENTRIES | For more complex date specifications, Org mode supports using the | special sexp diary entries implemented in the Emacs calendar/diary | package. For example |=20 | * The nerd meeting on every 2nd Thursday of the month | <%%(diary-float t 4 2)> `---- Here's how to schedule the examples above: * First Tuesday of month <%%(diary-float t 2 1)> * Third Sunday of month <%%(diary-float t 0 3)> * First or third Wednesday of month <%%(or (diary-float t 3 1) (diary-float t 3 3))> Best, Matt