From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?R=C3=BCdiger?= Sonderfeld Newsgroups: gmane.emacs.bugs Subject: bug#15816: 24.3; (format-time-string "%h") returns "" instead of month Date: Sat, 16 Nov 2013 01:01:32 +0100 Message-ID: <1906941.TC3lM9tOaX@descartes> References: <8361s57867.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1384560134 4418 80.91.229.3 (16 Nov 2013 00:02:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Nov 2013 00:02:14 +0000 (UTC) Cc: andrea.rossetti@gmail.com, 15816@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 16 01:02:18 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VhTL7-0006Bo-FN for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Nov 2013 01:02:17 +0100 Original-Received: from localhost ([::1]:34266 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VhTL6-0002VY-TX for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Nov 2013 19:02:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55035) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VhTKy-0002UY-GI for bug-gnu-emacs@gnu.org; Fri, 15 Nov 2013 19:02:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VhTKt-00023r-9L for bug-gnu-emacs@gnu.org; Fri, 15 Nov 2013 19:02:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42319) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VhTKt-00023j-67 for bug-gnu-emacs@gnu.org; Fri, 15 Nov 2013 19:02:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VhTKs-0002g2-M6 for bug-gnu-emacs@gnu.org; Fri, 15 Nov 2013 19:02:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?R=C3=BCdiger?= Sonderfeld Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Nov 2013 00:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15816 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15816-submit@debbugs.gnu.org id=B15816.138456011610276 (code B ref 15816); Sat, 16 Nov 2013 00:02:02 +0000 Original-Received: (at 15816) by debbugs.gnu.org; 16 Nov 2013 00:01:56 +0000 Original-Received: from localhost ([127.0.0.1]:56338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VhTKi-0002fc-Nx for submit@debbugs.gnu.org; Fri, 15 Nov 2013 19:01:56 -0500 Original-Received: from ptmx.org ([178.63.28.110]:35034) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VhTKd-0002fR-M9 for 15816@debbugs.gnu.org; Fri, 15 Nov 2013 19:01:48 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by ptmx.org (Postfix) with ESMTP id 28B0621FD8; Sat, 16 Nov 2013 01:01:46 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at ptmx.org Original-Received: from ptmx.org ([127.0.0.1]) by localhost (ptmx.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3sWVOGcyIVeY; Sat, 16 Nov 2013 01:01:44 +0100 (CET) Original-Received: from descartes.localnet (chello080108246092.7.14.vie.surfer.at [80.108.246.92]) by ptmx.org (Postfix) with ESMTPSA id 7BABF203A0; Sat, 16 Nov 2013 01:01:44 +0100 (CET) User-Agent: KMail/4.11.2 (Linux/3.11.0-12-generic; KDE/4.11.2; x86_64; ; ) In-Reply-To: <8361s57867.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:80621 Archived-At: On Wednesday 06 November 2013 19:26:56 Eli Zaretskii wrote: > All of them are supported, with the single exception of %r. I'd suggest documenting %F then. It is the date format for ISO 8601. -- 8< ---------------------------------------------------------- >8 -- * editfns.c (Fformat_time_string): Doc fix. (Bug#15816) --- src/ChangeLog | 4 ++++ src/editfns.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 4c3811d..7921b96 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2013-11-16 R=C3=83=C2=BCdiger Sonderfeld + +=09* editfns.c (Fformat_time_string): Doc fix. (Bug#15816) + 2013-11-15 Paul Eggert =20 =09* data.c: Work around bogus GCC diagnostic about shift count. diff --git a/src/editfns.c b/src/editfns.c index 277e5b6..f17b02a 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -1722,6 +1722,7 @@ TIME is specified as (HIGH LOW USEC PSEC), as ret= urned by %c is the locale's date and time format. %x is the locale's "preferred" date format. %D is like "%m/%d/%y". +%F is the ISO 8601 date format (like "%Y-%m-%d"). =20 %R is like "%H:%M", %T is like "%H:%M:%S", %r is like "%I:%M:%S %p". %X is the locale's "preferred" time format. @@ -1740,7 +1741,7 @@ but takes up at least N (a number) positions. %EX is a locale's alternative version of %X; %OX is like %X, but uses the locale's number symbols. =20 -For example, to produce full ISO 8601 format, use "%Y-%m-%dT%T%z". +For example, to produce full ISO 8601 format, use "%FT%T%z". =20 usage: (format-time-string FORMAT-STRING &optional TIME UNIVERSAL) */= ) (Lisp_Object format_string, Lisp_Object timeval, Lisp_Object univers= al) --=20 1.8.4.2