From 4ec52e2f8c1697994618b4bdfd013659f6defb1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Sonderfeld?= Date: Wed, 11 Dec 2013 15:42:55 +0100 Subject: [PATCH] Fix docstring of format-time-string to include %F. See discussion of Bug#15816. * editfns.c (Fformat_time_string): Mention %F in the doc. --- src/ChangeLog | 4 ++++ src/editfns.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index d8bbe5a97be..8c19c83378a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2013-12-11 RĂ¼diger Sonderfeld + + * editfns.c (Fformat_time_string): Mention %F in the doc. + 2013-12-11 Martin Rudalics * window.c (resize_frame_windows): Don't return immediately when diff --git a/src/editfns.c b/src/editfns.c index 8e47d1f82e4..f67b95a8e81 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -1723,6 +1723,7 @@ by text that describes the specified date and time in TIME: %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. @@ -1741,7 +1742,7 @@ The modifiers are `E' and `O'. For certain characters X, %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)