emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: nicholas.dokos@hp.com
Cc: "emacs-orgmode@gnu.org" <Emacs-orgmode@gnu.org>
Subject: Re: Re: Organizing a students live
Date: Wed, 10 Feb 2010 23:31:02 +0100	[thread overview]
Message-ID: <A62CEC99-7667-42DF-AA92-7EB0BD727D27@gmail.com> (raw)
In-Reply-To: <27704.1265840447@gamaville.dokosmarshall.org>


On Feb 10, 2010, at 11:20 PM, Nick Dokos wrote:

> Daniel Martins <danielemc@gmail.com> wrote:
>
>> 2010/2/10 John Rakestraw <lists@johnrakestraw.com>
>>
>>>>>>> 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

  reply	other threads:[~2010-02-10 22:31 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-18 10:48 Organizing a students live Thomas Bach
2009-12-18 13:31 ` Giovanni Ridolfi
2009-12-18 14:41 ` Darlan Cavalcante Moreira
2009-12-19  9:16 ` Jan Böcker
2009-12-19 11:20   ` Thomas Bach
2009-12-20 22:54     ` Daniel Martins
2009-12-20 23:52       ` Matt Lundin
2009-12-21 15:54         ` Daniel Martins
2009-12-22 15:30           ` Matthew Lundin
2009-12-26 11:33           ` Carsten Dominik
2009-12-27  0:51             ` Daniel Martins
2009-12-28 18:47               ` Carsten Dominik
2009-12-28 21:09                 ` Daniel Martins
2010-01-03 13:17                   ` Carsten Dominik
2010-02-10 19:02                     ` Daniel Martins
     [not found]                       ` <m3pr4chpee.fsf@buster.johnrakestraw.com>
2010-02-10 19:23                         ` Daniel Martins
2010-02-10 19:45                           ` Stephan Schmitt
2010-02-10 21:57                             ` Daniel Martins
2010-02-10 22:20                           ` Nick Dokos
2010-02-10 22:31                             ` Carsten Dominik [this message]
2010-02-10 22:48                               ` Daniel Martins
2009-12-21 17:23     ` Jan Böcker

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=A62CEC99-7667-42DF-AA92-7EB0BD727D27@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=Emacs-orgmode@gnu.org \
    --cc=nicholas.dokos@hp.com \
    /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).