unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Glenn Morris <rgm+news@stanford.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: How to make "the end date of the month" in diary
Date: Wed, 24 Feb 2010 12:10:24 -0800	[thread overview]
Message-ID: <dg635mcs3z.fsf@xoc2.stanford.edu> (raw)
In-Reply-To: e9bbca67-b7aa-49b1-b291-a983f8c3dd2b@y7g2000prc.googlegroups.com

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


      reply	other threads:[~2010-02-24 20:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

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.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=dg635mcs3z.fsf@xoc2.stanford.edu \
    --to=rgm+news@stanford.edu \
    --cc=help-gnu-emacs@gnu.org \
    /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.
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).