* 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
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).