bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#15816: 24.3; (format-time-string "%h") returns "" instead of month


From: Rüdiger Sonderfeld
Subject: bug#15816: 24.3; (format-time-string "%h") returns "" instead of month
Date: Wed, 11 Dec 2013 15:42:10 +0100
User-agent: KMail/4.11.2 (Linux/3.11.0-12-generic; KDE/4.11.2; x86_64; ; )

Pushed the change to trunk.

Regards,
Rüdiger

On Saturday 16 November 2013 01:01:32 Rüdiger Sonderfeld wrote:
> 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@c-plusplus.de>
> +
> +     * editfns.c (Fformat_time_string): Doc fix.  (Bug#15816)
> +
>  2013-11-15  Paul Eggert  <eggert@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)






reply via email to

[Prev in Thread] Current Thread [Next in Thread]