From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Emacs Lisp date/time functions and RFC 3339? Date: Fri, 10 Nov 2006 14:28:50 +0100 Message-ID: References: <17746.41387.298537.794187@gargle.gargle.HOWL> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1163165385 28491 80.91.229.2 (10 Nov 2006 13:29:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Nov 2006 13:29:45 +0000 (UTC) Cc: raman@users.sf.net, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 10 14:29:43 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GiWRw-0007FM-4E for ged-emacs-devel@m.gmane.org; Fri, 10 Nov 2006 14:29:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GiWRv-000706-HR for ged-emacs-devel@m.gmane.org; Fri, 10 Nov 2006 08:29:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GiWRe-0006y3-VI for emacs-devel@gnu.org; Fri, 10 Nov 2006 08:29:23 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GiWRc-0006uH-VX for emacs-devel@gnu.org; Fri, 10 Nov 2006 08:29:22 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GiWRc-0006u8-Q1 for emacs-devel@gnu.org; Fri, 10 Nov 2006 08:29:20 -0500 Original-Received: from [195.41.46.235] (helo=pfepa.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GiWRc-0004ja-Mw for emacs-devel@gnu.org; Fri, 10 Nov 2006 08:29:20 -0500 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepa.post.tele.dk (Postfix) with SMTP id 42535FAC01A; Fri, 10 Nov 2006 14:29:18 +0100 (CET) Original-To: Andreas Schwab In-Reply-To: (Andreas Schwab's message of "Fri\, 10 Nov 2006 13\:41\:51 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.90 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:62030 Archived-At: Andreas Schwab writes: > storm@cua.dk (Kim F. Storm) writes: > >> Andreas Schwab writes: >> >>> "T. V. Raman" writes: >>> >>>> The date/time handling functions in Emacs --- >>>> calendar/time-date.el, together with the primitives for >>>> encode-time and decode-time do not handle this format well, nor >>>> does format-time-string. >>> >>> In which way does format-time-string not handle that format? >> >> E.g. %z => -0800 whereas the rfc requests -08:00 > > GNU date supports %:z, %::z and %:::z, should be easy to add that to > format-time-string. So we should add at least %:z . > >> Also for UTC, %z => 0000 whereas the rfc requests Z > > If you know that you are formatting UTC you can just put the Z in the > format string. The use of Z for UTC is not mandated. The timezone is not optional. time-offset = "Z" / time-numoffset partial-time = time-hour ":" time-minute ":" time-second [time-secfrac] full-time = partial-time time-offset date-time = full-date "T" full-time -- Kim F. Storm http://www.cua.dk