From: Charles Sebold <csebold@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Week number
Date: Tue, 14 Oct 2008 07:43:25 -0500 [thread overview]
Message-ID: <uy70rmjo2.fsf@gmail.com> (raw)
In-Reply-To: mailman.994.1223980354.25473.help-gnu-emacs@gnu.org
On 14 Oct 2008, Xavier Maillard wrote:
> I can't find anything in GNU Emacs (CVS). I need a function that
> would return a formated week number (merely "%yw%w") given a date
> (or the current week number if no date given as argument).
Here's how org-mode does it:
(defun org-days-to-iso-week (days)
"Return the iso week number."
(require 'cal-iso)
(car (calendar-iso-from-absolute days)))
--
Charles Sebold 14th of October, 2008
next parent reply other threads:[~2008-10-14 12:43 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 ` Charles Sebold [this message]
2008-10-14 12:53 ` Week number Charles Sebold
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=uy70rmjo2.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.