Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I had a similar problem and found usefull the answer to "How can I create more complex appointments in my org-files?" in the FAQ at <a href="http://orgmode.org/worg/org-faq.html#Appointments/Diary">http://orgmode.org/worg/org-faq.html#Appointments/Diary</a> You can even add exceptions for holidays. I was not able to make work the time though: when you add it the formula stops working :(</p> <p>1) My example: Courses on Tuesdays and Thursdays falling in [2011-03-07 Mon]--[2011-06-25 Sat] minus [2011-05-15 Sun]--[2011-05-20 Fri] (a week of holiday):</p> <pre><code>** TEST Tuesday and Thursday in [2011-03-07 Mon]-[2011-06-20 Mon] minus holidays [2011-05-15 Sun]-[2011-05-22 Sun] &lt;%%(and (diary-block 3 7 2011 6 20 2011)(or (= 2 (calendar-day-of-week date) (= 4 (calendar-day-of-week date))))(not (diary-block 5 15 2011 5 22 2011)))&gt; </code></pre> <p>If you decompose the boolean function, you get the following, which is self explanatory:</p> <pre><code>&lt;%%(and (diary-block 3 7 2011 6 20 2011) (or (= 2 (calendar-day-of-week date) (= 4 (calendar-day-of-week date)))) (not (diary-block 5 15 2011 5 22 2011)) )&gt; </code></pre> <p>2) My suggestion for your case: a class every Tuesday every week from March to June (I took the liberty to fix the year to 2011):</p> <pre><code>&lt;%%(and (= 2 (calendar-day-of-week date)) (diary-block 3 23 2011 6 23 2011)))&gt; </code></pre> <p>You might want to have a look to the newly added section "How can I schedule a weekly class that lasts for a limited period of time?", about the function "org-diary-class", but it still seems to have problem with scheduling hours :(</p> <p>Hope it helps,</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload