From mboxrd@z Thu Jan 1 00:00:00 1970 From: pinard@iro.umontreal.ca (=?utf-8?Q?Fran=C3=A7ois?= Pinard) Subject: Re: Convert from date to week number, howto? Date: Sun, 12 Feb 2012 00:17:53 -0500 Message-ID: <87fweg3a0u.fsf@iro.umontreal.ca> References: <87liol1a8z.fsf@iro.umontreal.ca> <11073.1328200350@alphaville> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:43464) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwRoy-0001ny-DX for emacs-orgmode@gnu.org; Sun, 12 Feb 2012 00:17:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RwRox-0002J4-6Z for emacs-orgmode@gnu.org; Sun, 12 Feb 2012 00:17:56 -0500 Received: from 206-248-137-202.dsl.teksavvy.com ([206.248.137.202]:55086 helo=mercure.epsilon-ti.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwRox-0002Iz-37 for emacs-orgmode@gnu.org; Sun, 12 Feb 2012 00:17:55 -0500 In-Reply-To: <11073.1328200350@alphaville> (Nick Dokos's message of "Thu, 02 Feb 2012 11:32:30 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org > Fran=C3=A7ois Pinard wrote: >> I sometimes have to convert from a date to a week number Nick Dokos writes: > org-days-to-iso-week Jambunathan K writes: > (org-odt-format-date "<2011-12-31 Sat>" "%U") > (org-odt-format-date "[2011-12-24 Sat]" "%U") Georges Ko writes: > (require 'calendar) > (require 'cal-iso) > (car > (calendar-iso-from-absolute > (calendar-absolute-from-gregorian=20 > (list month day year)))) Thanks for these solutions! Fran=C3=A7ois