From: Charles Sebold <csebold@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Week number
Date: Tue, 14 Oct 2008 07:53:41 -0500 [thread overview]
Message-ID: <utzbfmj6y.fsf@gmail.com> (raw)
In-Reply-To: uy70rmjo2.fsf@gmail.com
On 14 Oct 2008, Charles Sebold wrote:
> Here's how org-mode does it:
Sorry, this is really what you were asking for, then:
(defun crs-iso-week (&optional date)
"Week number of ISO date of Gregorian DATE.
Defaults to today's date if DATE is not given."
(require 'cal-iso)
(let* ((d (calendar-absolute-from-gregorian
(or date (calendar-current-date))))
(iso-date (calendar-iso-from-absolute d)))
(format "%dw%2d" (extract-calendar-year iso-date)
(extract-calendar-month iso-date))))
--
Charles Sebold 14th of October, 2008
next prev parent reply other threads:[~2008-10-14 12:53 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.994.1223980354.25473.help-gnu-emacs@gnu.org>
2008-10-14 12:43 ` Week number Charles Sebold
2008-10-14 12:53 ` Charles Sebold [this message]
2008-10-14 20:25 ` Xavier Maillard
2008-10-14 21:13 ` Charles Sebold
2008-10-14 21:37 ` Peter Dyballa
2008-10-14 21:42 ` Charles Sebold
2008-10-15 8:25 ` Xavier Maillard
[not found] ` <mailman.1043.1224016162.25473.help-gnu-emacs@gnu.org>
2008-10-14 21:09 ` Charles Sebold
2008-10-14 21:56 ` Drew Adams
2008-10-15 8:25 ` Xavier Maillard
2008-10-15 21:28 ` Harald Hanche-Olsen
2008-10-14 6:25 Xavier Maillard
2008-10-14 13:08 ` Paul R
2008-10-14 20:25 ` Xavier Maillard
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=utzbfmj6y.fsf@gmail.com \
--to=csebold@gmail.com \
--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.
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.