all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to make "the end date of the month" in diary
@ 2010-02-23  8:44 Kiwon Um
  2010-02-24 20:10 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Kiwon Um @ 2010-02-23  8:44 UTC (permalink / raw)
  To: help-gnu-emacs

Dear emacs users:

The diary-float function has a powerful date calculation ability.
Then,
how can I calculate "the end date of the month"?

For monthly scheduled tasks, I want to note all end dates of all
months:
1/31, 2/28, 3/31, and so on,

i.e. in org-mode,
* A monthly task
 SCHEDULED: <%%(diary-...)>

Thanks.

--
Kiwon Um


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to make "the end date of the month" in diary
  2010-02-23  8:44 How to make "the end date of the month" in diary Kiwon Um
@ 2010-02-24 20:10 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2010-02-24 20:10 UTC (permalink / raw)
  To: help-gnu-emacs

Kiwon Um wrote:

> The diary-float function has a powerful date calculation ability.
> Then, how can I calculate "the end date of the month"?

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-02-24 20:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-23  8:44 How to make "the end date of the month" in diary Kiwon Um
2010-02-24 20:10 ` Glenn Morris

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.