emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Łukasz Stelmach" <lukasz.stelmach@iem.pw.edu.pl>
To: emacs-orgmode@gnu.org
Subject: Re: schedule repeated reminder on multiple days for multiple weeks
Date: Fri, 19 Feb 2010 12:30:47 +0100	[thread overview]
Message-ID: <87y6iptqc8.fsf@dasa3.iem.pw.edu.pl> (raw)
In-Reply-To: 7a3257-i8u.ln1@news.eternal-september.org

Richard Riley <rileyrgdev@gmail.com> 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 
     (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)Timestamps>
<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

  parent reply	other threads:[~2010-02-19 11:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-19  9:47 schedule repeated reminder on multiple days for multiple weeks Richard Riley
2010-02-19 11:06 ` Carsten Dominik
2010-02-19 11:30 ` Łukasz Stelmach [this message]
2010-02-19 15:34   ` Richard Riley
2010-02-21  2:27     ` Richard Riley

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=87y6iptqc8.fsf@dasa3.iem.pw.edu.pl \
    --to=lukasz.stelmach@iem.pw.edu.pl \
    --cc=emacs-orgmode@gnu.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).