From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Re: Organizing a students live Date: Wed, 10 Feb 2010 17:20:47 -0500 Message-ID: <27704.1265840447@gamaville.dokosmarshall.org> 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> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NfKxK-0006cl-PE for emacs-orgmode@gnu.org; Wed, 10 Feb 2010 17:22:46 -0500 Received: from [199.232.76.173] (port=33725 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NfKxK-0006cE-8o for Emacs-orgmode@gnu.org; Wed, 10 Feb 2010 17:22:46 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NfKxI-0006Db-I8 for Emacs-orgmode@gnu.org; Wed, 10 Feb 2010 17:22:46 -0500 Received: from vms173011pub.verizon.net ([206.46.173.11]:50693) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NfKxI-00066t-8N for Emacs-orgmode@gnu.org; Wed, 10 Feb 2010 17:22:44 -0500 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173011.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0KXN007BACQNFPX2@vms173011.mailsrvcs.net> for Emacs-orgmode@gnu.org; Wed, 10 Feb 2010 16:20:52 -0600 (CST) In-reply-to: Message from Daniel Martins of "Wed\, 10 Feb 2010 17\:23\:32 -0200." <6ac505ad1002101123m47bf0c13n4bb8c27c576267a7@mail.gmail.com> 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: Daniel Martins Cc: "emacs-orgmode@gnu.org" Daniel Martins wrote: > 2010/2/10 John Rakestraw >=20 > >>>>> Daniel Martins writes: >=20=20=20=20 > > Someone could send me an example of the use of the org-diary-class = ?? >=20=20=20=20 > *** 12:15-13:05 Class > =C2=A0 =C2=A0<%%(org-diary-class 1 13 2010 5 3 2010 1 3 7 10 14)> > =C2=A0 =C2=A0<%%(org-diary-class 1 13 2010 5 3 2010 3 10)> > =C2=A0 =C2=A0<%%(org-diary-class 1 13 2010 5 3 2010 5 10 13)> >=20=20=20=20 > 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 w= eeks > 10 and 13. >=20=20=20=20 > Thank you very much John. Incredibly fast answer !!! >=20 > BTW Is there an easy /practical=C2=A0 way to convert holidays dates to nu= mber 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. Nick