From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Charles Sebold Newsgroups: gmane.emacs.help Subject: Re: Week number Date: Tue, 14 Oct 2008 16:13:37 -0500 Message-ID: References: <200810142025.m9EKP5DO005068@zogzog.maillard.mobi> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1224018872 31663 80.91.229.12 (14 Oct 2008 21:14:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Oct 2008 21:14:32 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Charles Sebold To: Xavier Maillard Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 14 23:15:30 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KprEU-0002OI-Jy for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Oct 2008 23:15:10 +0200 Original-Received: from localhost ([127.0.0.1]:57316 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KprDP-0008HF-Vf for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Oct 2008 17:14:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KprD5-0008FO-Mv for help-gnu-emacs@gnu.org; Tue, 14 Oct 2008 17:13:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KprD4-0008Cs-4P for help-gnu-emacs@gnu.org; Tue, 14 Oct 2008 17:13:42 -0400 Original-Received: from [199.232.76.173] (port=38989 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KprD3-0008CY-Uf for help-gnu-emacs@gnu.org; Tue, 14 Oct 2008 17:13:41 -0400 Original-Received: from qw-out-1920.google.com ([74.125.92.150]:5560) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KprD3-0008Gm-RZ for help-gnu-emacs@gnu.org; Tue, 14 Oct 2008 17:13:42 -0400 Original-Received: by qw-out-1920.google.com with SMTP id 4so790593qwk.24 for ; Tue, 14 Oct 2008 14:13:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:to:cc:subject:references:from :x-using-mail-mode:face:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=wUiLS5N/2TG5QZ+IQvCU4kkyZ6TSXm7n9k1E5s5r46M=; b=Mu5M2Fnw84y50CxW+QnRb0OatA/av7n1wMhIA/bo4s5zjzIGSY3LKCaGPUlXmDkpuY DSR8+Y5u8OnCJSboSDewgLuztm63+kRHw0MtOpQvK/JHgzS9XEJ8qPUrXcJkTN1DuibO sipGZiX5YuO7BJMz5dbEBqmEdPjBSdyBtlGYI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:cc:subject:references:from:x-using-mail-mode:face:date :in-reply-to:message-id:user-agent:mime-version:content-type; b=Z5T8vNsOWZD/v4nN3H0IC0vHZmX5FXCSPoSdGkMCC8dhvN0vmfF1e9JVW/2jwtHiiW L2YimK5F6Zf7HbvKSIffUjUN9q/EDR9gf625kjifokQG7lAIH76NnRrHX4hzsjEIqTH6 cAtHZCLsIAK3fiC1qkIv9whvgfqTqoxibAQIk= Original-Received: by 10.215.14.10 with SMTP id r10mr17781qai.91.1224018820050; Tue, 14 Oct 2008 14:13:40 -0700 (PDT) Original-Received: from smtp.gmail.com (75-130-10-114.static.stls.mo.charter.com [75.130.10.114]) by mx.google.com with ESMTPS id 8sm3134661qwj.6.2008.10.14.14.13.39 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 14 Oct 2008 14:13:39 -0700 (PDT) X-Using-Mail-Mode: Gmail Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAAAXNSR0IArs4c6QAAAAxQTFRF Py4qdFVKtYRz3aSQR+07SwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9gIEhcaB8/5OroA AAHxSURBVCjPLdExa9tAFMDxp1Jl6OZBGrJ36ac4g+2hSxXwCexAOzmQM9QfIIs9NLMNOYPVoUsl 0BNIUwafQPoKGdolHbo0BstgLy3FEuj15HS7H/93B3cHxExMieiLzwBwbotcI2xA8zM8aDwupxoP /BnP5fyE4vuMgWQ8yiuiv08LBtlUxDpQXX5iQLNh0oDWtw7Uczc64ejNgKaWaNZYvp+DeHjp5lRL V31YAGeWMT743J+8/QZbo9UXGIwz790vmBn99pAU5lHPh99mu+PWkifl7VfonvW4e/T7Vi2vwXnF ZdcN73uT4A66risuN/iHo9+HzcBbiQ2uuWy1oL0KwjebLaK3R/Dt69XHQ5FgRAjMdDnuirj4XBcA 9uoqXZdRFe0bIFKGiJNSj9l6Ot1yj3aoS/yDMqpyKlWDn1V5up4u58ljUTcoY7izswCj/6Xy8EKc UChIvfBF2DxWjQrU0jH4ZVN2ClA6FrfzpuwBfcsLcKxLpCAYDVwshkRVtodi8Zp7+VKPHUqI/YFA IfWmKoVCuiIONTLSR0vLS+gpqahScOzzC0H+5JDra0tmOqKU+vf2Cu6Z0Rni4ian/alw4S9uqMGI Ga43utBjSr8bszCU3UiHUMP0Qt6O0hRl842DFTejSgUDWDvmcNTpqjhc8n9hvWnVsoKmHAAAAABJ RU5ErkJggg== In-Reply-To: <200810142025.m9EKP5DO005068@zogzog.maillard.mobi> (Xavier Maillard's message of "Tue\, 14 Oct 2008 22\:25\:05 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (windows-nt) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:58780 Archived-At: On 14 Oct 2008, Xavier Maillard wrote: > I compared the results of your function and the result from a > simple (format-time-string "%W") for the current date and I got > week 42 for the former and week 41 for the latter. Can you > explain this ? However, looking at this more closely, I think that maybe it's a question of whether you want ISO weeks or not. It's a thornier problem than I first realized. http://en.wikipedia.org/wiki/ISO_week_date -- Charles Sebold http://merbc.invigorated.org/ http://triablogue.blogspot.com/