unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Rüdiger Sonderfeld" <ruediger@c-plusplus.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: andrea.rossetti@gmail.com, 15816@debbugs.gnu.org
Subject: bug#15816: 24.3; (format-time-string "%h") returns "" instead of month
Date: Wed, 11 Dec 2013 15:42:10 +0100	[thread overview]
Message-ID: <1546747.7kdV0yWjTE@descartes> (raw)
In-Reply-To: <1906941.TC3lM9tOaX@descartes>

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	other threads:[~2013-12-11 14:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-06  0:05 bug#15816: 24.3; (format-time-string "%h") returns "" instead of month andrea.rossetti
2013-11-06  0:48 ` Stefan Monnier
2013-11-06  6:46   ` Bastien
2013-11-06 10:16     ` Eli Zaretskii
2013-11-06 10:16 ` Eli Zaretskii
2013-11-06 13:31   ` Rüdiger Sonderfeld
2013-11-06 14:16     ` Andreas Schwab
2013-11-06 17:12     ` Stefan Monnier
2013-11-06 17:26     ` Eli Zaretskii
2013-11-16  0:01       ` Rüdiger Sonderfeld
2013-12-11 14:42         ` Rüdiger Sonderfeld [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1546747.7kdV0yWjTE@descartes \
    --to=ruediger@c-plusplus.de \
    --cc=15816@debbugs.gnu.org \
    --cc=andrea.rossetti@gmail.com \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).