From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: Organizing a students live Date: Wed, 10 Feb 2010 23:31:02 +0100 Message-ID: References: <877hskh81j.fsf@uni-mainz.de> <6ac505ad0912210754x72a4e37cx674d3bf0af5cb4d6@mail.gmail.com> <0B9ABBC1-4CE1-4F14-B056-8BEBFCB5B0F0@gmail.com> <6ac505ad0912261651v553e4701y8299e3cd0ad0fdb9@mail.gmail.com> <7261F3CD-8614-462A-A47E-5C2B16374A51@gmail.com> <6ac505ad0912281309v53e8a923v6490c2f780c73a64@mail.gmail.com> <6ac505ad1002101102i290108a6wf17a3dbf935e5790@mail.gmail.com> <6ac505ad1002101123m47bf0c13n4bb8c27c576267a7@mail.gmail.com> <27704.1265840447@gamaville.dokosmarshall.org> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NfL5V-0008DL-QW for emacs-orgmode@gnu.org; Wed, 10 Feb 2010 17:31:13 -0500 Received: from [199.232.76.173] (port=44107 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NfL5V-0008DC-I9 for Emacs-orgmode@gnu.org; Wed, 10 Feb 2010 17:31:13 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NfL5U-0006tE-Ln for Emacs-orgmode@gnu.org; Wed, 10 Feb 2010 17:31:13 -0500 Received: from ey-out-1920.google.com ([74.125.78.149]:15992) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NfL5U-0006t8-Bp for Emacs-orgmode@gnu.org; Wed, 10 Feb 2010 17:31:12 -0500 Received: by ey-out-1920.google.com with SMTP id 3so1385283eyh.2 for ; Wed, 10 Feb 2010 14:31:11 -0800 (PST) In-Reply-To: <27704.1265840447@gamaville.dokosmarshall.org> 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: nicholas.dokos@hp.com Cc: "emacs-orgmode@gnu.org" On Feb 10, 2010, at 11:20 PM, Nick Dokos wrote: > Daniel Martins wrote: > >> 2010/2/10 John Rakestraw >> >>>>>>> Daniel Martins writes: >> >>> Someone could send me an example of the use of the org-diary- >>> class ?? >> >> *** 12:15-13:05 Class >> <%%(org-diary-class 1 13 2010 5 3 2010 1 3 7 10 14)> >> <%%(org-diary-class 1 13 2010 5 3 2010 3 10)> >> <%%(org-diary-class 1 13 2010 5 3 2010 5 10 13)> >> >> Class meets Mon-Wed-Fri from Jan 13 to May 3 from 12:15 to >> 13:05, with >> holidays as indicated. Friday's class, for example, doesn't meet >> in weeks >> 10 and 13. >> >> Thank you very much John. Incredibly fast answer !!! >> >> BTW Is there an easy /practical way to convert holidays dates to >> number of weeks? > > Not sure I read this right, but if you are talking about converting a > date to a week-number (as e.g. exhibited at the top of the weekly > agenda), this should do the trick: > > ;;; date is a three-element list (month day year) > ;;; (calendar-current-date) returns the date in this format. > (defun week-number (date) > (org-days-to-iso-week > (calendar-absolute-from-gregorian date))) > > but I guess the more difficult question is a user interface that > allows > you to construct such elaborate org-diary-class constructs. You can also navigate the agenda to the corresponding days, and it will show the week number. HTH - Carsten