From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Can `format-time-string' produce full/extended ISO 8601 times? Date: Thu, 06 Aug 2009 23:41:28 +0300 Organization: JURTA Message-ID: <87d478n093.fsf@mail.jurta.org> References: <878wi1epta.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1249592505 26867 80.91.229.12 (6 Aug 2009 21:01:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Aug 2009 21:01:45 +0000 (UTC) Cc: emacs-devel@gnu.org To: MON KEY Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 06 23:01:37 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MZA5g-0006Ag-Mi for ged-emacs-devel@m.gmane.org; Thu, 06 Aug 2009 23:01:37 +0200 Original-Received: from localhost ([127.0.0.1]:34232 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZA5g-0000Iu-3l for ged-emacs-devel@m.gmane.org; Thu, 06 Aug 2009 17:01:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MZ9qt-0000qM-Mz for emacs-devel@gnu.org; Thu, 06 Aug 2009 16:46:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MZ9qo-0000o7-6V for emacs-devel@gnu.org; Thu, 06 Aug 2009 16:46:18 -0400 Original-Received: from [199.232.76.173] (port=51549 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZ9qn-0000nq-R0 for emacs-devel@gnu.org; Thu, 06 Aug 2009 16:46:13 -0400 Original-Received: from smtp-out1.starman.ee ([85.253.0.3]:45173 helo=mx1.starman.ee) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MZ9qm-0004PM-SB for emacs-devel@gnu.org; Thu, 06 Aug 2009 16:46:13 -0400 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (82.131.29.126.cable.starman.ee [82.131.29.126]) by mx1.starman.ee (Postfix) with ESMTP id 9AC693F40D8; Thu, 6 Aug 2009 23:46:03 +0300 (EEST) In-Reply-To: (MON KEY's message of "Thu, 6 Aug 2009 14:39:20 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:113761 Archived-At: > To reiterate, the gist of my query is this: > > Is it possible to format the UTC offset/ZONE with a colon per the > 'Extended format? I looked briefly at the implementation of time formatting in Emacs and see that it is an old copy of the function `strftime' from gnulib. I wonder is it possible to call this function directly from the library where it already has more supported formats including time zones with a colon: `%z' RFC 2822/ISO 8601 style numeric time zone (e.g., `-0600' or `+0530'), or nothing if no time zone is determinable. This is a GNU extension. `%:z' RFC 3339/ISO 8601 style numeric time zone with `:' (e.g., `-06:00' or `+05:30'), or nothing if no time zone is determinable. This is a GNU extension. `%::z' Numeric time zone to the nearest second with `:' (e.g., `-06:00:00' or `+05:30:00'), or nothing if no time zone is determinable. This is a GNU extension. `%:::z' Numeric time zone with `:' using the minimum necessary precision (e.g., `-06', `+05:30', or `-04:56:02'), or nothing if no time zone is determinable. This is a GNU extension. -- Juri Linkov http://www.jurta.org/emacs/