Re: [Orgmode] Re: Setting recurring deadlines

2009-02-10 Thread Tassilo Horn
Nick Dokos  writes:

Hi Nick,

>> I was curious how to get that done, but I couldn't find a diary for
>> "each last day of a month" in diary, too.  "Each second thursday in a
>> month" is on emacswiki, but all those complex dates I found are wired
>> to a specific day of the week...
>
> "Bah, how hard can that be?" - famous last words, now eaten (I did
> choke on them along the way) ...
>
> Here's my attempt (tested *very* lightly):
>
> &%%(let ((lastday (calendar-last-day-of-month (calendar-extract-month date)
>   (calendar-extract-year date)))
>  (day (calendar-extract-day date)))
> (= day lastday)) last day of month

Using `calendar-last-day-of-month' is unfair. ;-)

Bye,
Tassilo


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Setting recurring deadlines

2009-02-09 Thread Nick Dokos
Tassilo Horn  wrote:

> Manish  writes:
> 
> >> I am having trouble with something pretty basic. I am trying to setup
> >> a recurring deadline on the last day of every month. However, when I
> >> set it as <2009-02-28 +1m>, the next deadline shows up at 2009-03-28,
> >> rather than 31st March.
> >>
> >> I don't use appt/diary. Is there a way to do this in org-mode?
> >
> > Currently not possible to the best of my knowledge.  IMHO, including
> > via diary seems to be a reasonable workaround.
> 
> I was curious how to get that done, but I couldn't find a diary for
> "each last day of a month" in diary, too.  "Each second thursday in a
> month" is on emacswiki, but all those complex dates I found are wired to
> a specific day of the week...
> 

"Bah, how hard can that be?" - famous last words, now eaten (I did choke
on them along the way) ...

Here's my attempt (tested *very* lightly):

&%%(let ((lastday (calendar-last-day-of-month (calendar-extract-month date)
  (calendar-extract-year date)))
 (day (calendar-extract-day date)))
(= day lastday)) last day of month



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Setting recurring deadlines

2009-02-09 Thread Carsten Dominik
Try thinking about the last day of the month being one day before the  
first day of the next month.


- Carsten

On Feb 9, 2009, at 10:07 PM, Tassilo Horn wrote:


Manish  writes:

I am having trouble with something pretty basic. I am trying to  
setup

a recurring deadline on the last day of every month. However, when I
set it as <2009-02-28 +1m>, the next deadline shows up at  
2009-03-28,

rather than 31st March.

I don't use appt/diary. Is there a way to do this in org-mode?


Currently not possible to the best of my knowledge.  IMHO, including
via diary seems to be a reasonable workaround.


I was curious how to get that done, but I couldn't find a diary for
"each last day of a month" in diary, too.  "Each second thursday in a
month" is on emacswiki, but all those complex dates I found are  
wired to

a specific day of the week...

Bye,
Tassilo



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode