From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: Timestamp format questions Date: Mon, 07 Jun 2010 14:40:30 -0400 Message-ID: <87ljaq8z4x.fsf@fastmail.fm> References: <20100607121554.GA500@vpn-2151.gwdg.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=53173 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OLhFQ-0005Mz-KJ for emacs-orgmode@gnu.org; Mon, 07 Jun 2010 14:40:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OLhFO-00012c-Or for emacs-orgmode@gnu.org; Mon, 07 Jun 2010 14:40:32 -0400 Received: from out5.smtp.messagingengine.com ([66.111.4.29]:42167) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OLhFO-00012J-NH for emacs-orgmode@gnu.org; Mon, 07 Jun 2010 14:40:30 -0400 Received: from compute1.internal (compute1.internal [10.202.2.41]) by gateway1.messagingengine.com (Postfix) with ESMTP id E23EFF8697 for ; Mon, 7 Jun 2010 14:40:28 -0400 (EDT) In-Reply-To: <20100607121554.GA500@vpn-2151.gwdg.de> (Joost Kremers's message of "Mon, 7 Jun 2010 14:15:55 +0200") 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: Joost Kremers Cc: emacs-orgmode@gnu.org Hi Joost, Joost Kremers writes: > Most pressing: how can I say that a certain event occurs every week on > a certain day and time, but only for a limited period? E.g., for > classes I teach I want to be able to say 'this class takes place from > April 8 through July 8, every Thursday from 12.00 to 14.00. If I > write: > > <2010-04-08 Thu 12:00-14.00 +1w> > > I get the correct time and interval, but of course it doesn't stop at the > correct date. However, if I write > > <2010-04-08 Thu 12:00-14.00 +1w>--<2010-07-08 Thu> > > then it shows up *every day* in the agenda view, not just on Thursdays. (That > actually looks like a bug to me, but perhaps I'm doing something > wrong.) You can use diary sexps to schedule more complex appointments. ,---- (info "(org) Timestamps") | 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 | | * The nerd meeting on every 2nd Thursday of the month | <%%(diary-float t 4 2)> `---- See also the following FAQ entry: http://orgmode.org/worg/org-faq.php#diary-sexp-in-org-files The function org-diary-class nicely covers the scenario above: --8<---------------cut here---------------start------------->8--- * 12:00-14:00 Weekly class <%%(org-diary-class 4 8 2010 7 8 2010 4)> --8<---------------cut here---------------end--------------->8--- http://orgmode.org/worg/org-faq.php#org-diary-class > Also, is there a way to say that a certain event that occurs every > week does not occur on one specific date? For example, I teach a class > every Thursday, but the Thu. 13th of May was Ascension Day, so the > class was cancelled. I would like the event to not show up on such > days. --8<---------------cut here---------------start------------->8--- * 12:00-14:00 Weekly class <%%(org-diary-class 4 8 2010 7 8 2010 4 19)> ;; iso number of the week to skip --8<---------------cut here---------------end--------------->8--- Best, Matt