GNU bug report logs -
#15816
24.3; (format-time-string "%h") returns "" instead of month
Previous Next
Reported by: andrea.rossetti <at> gmail.com
Date: Wed, 6 Nov 2013 00:07:01 UTC
Severity: minor
Found in version 24.3
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
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üdiger Sonderfeld <ruediger <at> c-plusplus.de>
+
+ * editfns.c (Fformat_time_string): Doc fix. (Bug#15816)
+
2013-11-15 Paul Eggert <eggert <at> cs.ucla.edu>
* 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 returned 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").
%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.
-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".
usage: (format-time-string FORMAT-STRING &optional TIME UNIVERSAL) */)
(Lisp_Object format_string, Lisp_Object timeval, Lisp_Object universal)
--
1.8.4.2
This bug report was last modified 11 years and 243 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.