[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: schedule repeated reminder on multiple days for multiple w

From: Łukasz Stelmach
Subject: [Orgmode] Re: schedule repeated reminder on multiple days for multiple weeks
Date: Fri, 19 Feb 2010 12:30:47 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Richard Riley <address@hidden> 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?

--8<---------------cut here---------------start------------->8---
* Incredible Radio Show 20:00-20:55
     (and (< 0 (calendar-day-of-week date))
          (< (calendar-day-of-week date) 6))
      (diary-block 2010 3 1 2010 7 18))
--8<---------------cut here---------------end--------------->8---

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:
<info:(org)Weekly/daily agenda>
<info:(emacs)Special Diary Entries>
<info:(org)Time-of-day specifications>
<info:(emacs)Date Formats>

Miłego dnia,
Łukasz Stelmach

reply via email to

[Prev in Thread] Current Thread [Next in Thread]