From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "T. V. Raman" Newsgroups: gmane.emacs.devel Subject: Re: Emacs Lisp date/time functions and RFC 3339? Date: Fri, 10 Nov 2006 06:33:37 -0800 Message-ID: <17748.36289.328185.680744@gargle.gargle.HOWL> References: <17746.41387.298537.794187@gargle.gargle.HOWL> Reply-To: raman@users.sf.net NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1163169414 11439 80.91.229.2 (10 Nov 2006 14:36:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Nov 2006 14:36:54 +0000 (UTC) Cc: schwab@suse.de, 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 15:36:52 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 1GiXT0-0002Td-LM for ged-emacs-devel@m.gmane.org; Fri, 10 Nov 2006 15:34:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GiXSz-0003nG-S5 for ged-emacs-devel@m.gmane.org; Fri, 10 Nov 2006 09:34:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GiXS8-0003P7-Sk for emacs-devel@gnu.org; Fri, 10 Nov 2006 09:33:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GiXS6-0003O3-Lz for emacs-devel@gnu.org; Fri, 10 Nov 2006 09:33:55 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GiXS6-0003Np-AB for emacs-devel@gnu.org; Fri, 10 Nov 2006 09:33:54 -0500 Original-Received: from [216.148.227.151] (helo=rwcrmhc11.comcast.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GiXS6-0006fj-3V for emacs-devel@gnu.org; Fri, 10 Nov 2006 09:33:54 -0500 Original-Received: from localhost (c-71-202-191-236.hsd1.ca.comcast.net[71.202.191.236]) by comcast.net (rwcrmhc11) with ESMTP id <20061110143337m1100nemsie>; Fri, 10 Nov 2006 14:33:53 +0000 Original-Received: by localhost (Postfix, from userid 1000) id 5CA8412A40CC; Fri, 10 Nov 2006 06:33:37 -0800 (PST) Original-To: storm@cua.dk In-Reply-To: X-Mailer: VM 7.19 under Emacs 22.0.90.7 x-attribution: tvr 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:62036 Archived-At: The -08:00 vs emacs' -0800 for local timezones is a bigger problem. >>>>> "Kim" == Kim F Storm writes: Kim> 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. Kim> Kim> So we should add at least %:z . Kim> >> >> 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. Kim> Kim> The timezone is not optional. Kim> Kim> time-offset = "Z" / time-numoffset Kim> Kim> partial-time = time-hour ":" time-minute ":" Kim> time-second [time-secfrac] Kim> Kim> full-time = partial-time time-offset Kim> Kim> date-time = full-date "T" full-time Kim> Kim> Kim> -- Kim F. Storm http://www.cua.dk Kim> Kim> Kim> Kim> _______________________________________________ Kim> Emacs-devel mailing list Emacs-devel@gnu.org Kim> http://lists.gnu.org/mailman/listinfo/emacs-devel -- Best Regards, --raman Email: raman@users.sf.net WWW: http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: tv.raman.tv@gmail.com PGP: http://emacspeak.sf.net/raman/raman-almaden.asc Google: tv+raman IRC: irc://irc.freenode.net/#emacs