From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Riley Subject: Re: schedule repeated reminder on multiple days for multiple weeks Date: Fri, 19 Feb 2010 16:34:36 +0100 Message-ID: References: <7a3257-i8u.ln1@news.eternal-september.org> <87y6iptqc8.fsf@dasa3.iem.pw.edu.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NiV3J-00028z-5p for emacs-orgmode@gnu.org; Fri, 19 Feb 2010 10:46:01 -0500 Received: from [140.186.70.92] (port=49421 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NiV3H-00025X-5f for emacs-orgmode@gnu.org; Fri, 19 Feb 2010 10:46:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NiV3G-0007L3-OO for emacs-orgmode@gnu.org; Fri, 19 Feb 2010 10:45:59 -0500 Received: from lo.gmane.org ([80.91.229.12]:38243) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NiV3G-0007Kw-Ih for emacs-orgmode@gnu.org; Fri, 19 Feb 2010 10:45:58 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NiV3B-0007sr-Q6 for emacs-orgmode@gnu.org; Fri, 19 Feb 2010 16:45:53 +0100 Received: from 85.183.18.158 ([85.183.18.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Feb 2010 16:45:53 +0100 Received: from rileyrgdev by 85.183.18.158 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Feb 2010 16:45:53 +0100 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: emacs-orgmode@gnu.org Ɓukasz Stelmach writes: > Richard Riley writes:> >> What would the best approach be to schedule something like a radio >> program which is on monday to friday at a certain time for the next 20 >> weeks? > > > > * Incredible Radio Show 20:00-20:55 > &%%(and > (and (< 0 (calendar-day-of-week date)) > (< (calendar-day-of-week date) 6)) > (diary-block 2010 3 1 2010 7 18)) > > > > The time is in the heading, you can use am/pm style too. > > The "&%%(" introduces diray sexp (an elisp snippet evaluated during the > porcess of building agenda view). This one is true, which makes the > event appear, when all of following conditions ar met: > > + the day of week obtained with calendar day of week is greater than > 0 (0: sunday, 6: saturday), and less than 6. > > + the date is between 2010-03-01 (March 1) and 2010-07-18 (July 18) > > Note that: > > + you have to calculate the end date by hand (maybe there is a > function for this, but the sexp would be longer), > > + the order of numbers in diary block expression depends on the > value of calendar-date-style variable. This one is iso style. > > Refere to: > > > > > Eek! ;) Thanks to both you and Carsten.