help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Week number


From: Charles Sebold
Subject: Re: Week number
Date: Tue, 14 Oct 2008 07:43:25 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (windows-nt)

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]