From: "Rüdiger Sonderfeld" <ruediger@c-plusplus.de>
To: 15816@debbugs.gnu.org, eliz@gnu.org
Cc: andrea.rossetti@gmail.com, 15816-done@debbugs.gnu.org
Subject: bug#15816: 24.3; (format-time-string "%h") returns "" instead of month
Date: Wed, 06 Nov 2013 14:31:04 +0100 [thread overview]
Message-ID: <3369232.afZtqa4znz@descartes> (raw)
In-Reply-To: <83d2md7s4f.fsf@gnu.org>
On Wednesday 06 November 2013 12:16:00 Eli Zaretskii wrote:
> > From: andrea.rossetti@gmail.com
> > Date: Wed, 06 Nov 2013 01:05:45 +0100
> > correctly returns "nov". I suppose this is
> > due to the runtime of my Windows installation
> > (an ordinary Windows 7 64-bit) not supporting
> > C99 format modifiers of the C function "strftime".
>
> Indeed, Windows version of strftime doesn't support %h.
I just compared the docstring to the manpage of strftime on GNU/Linux and the
following symbols are not ANSI C
- %C is SU
- %G,%g are TZ
- %h is SU (%b)
- %e is SU (%d with blanks)
- %u is SU
- %V is SU
- %k is TZ (%H with blanks)
- %l is TZ (%I with blanks)
- %N not in manpage or glibc manual
- %z is SU
- %s is TZ
- %D is SU ("%m/%d/%y", should not be used)
- %T is SU ("%H:%M:%S")
- %R is SU ("%H:%M")
- %r is SU ("%I:%M:%S %p")
- %t is SU (\t)
- %n is SU (\n)
(SU :: Single UNIX Specification and TZ :: Olson's timezone package)
Maybe we should not mention %h, %D, %T, %R, %r, %t, %n at all because these
can be replaced by the portable alternatives mentioned. The rest might be a
bit tricky to replace. Could you try which of them work on Windows at all?
(Sorry I don't have a current Windows Emacs available.)
There are also %F in C99 (ISO 8601 date format) and %P (GNU extension, am/pm),
which are not mentioned in the docstring right now.
Regards,
Rüdiger
next prev parent reply other threads:[~2013-11-06 13:31 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 [this message]
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
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3369232.afZtqa4znz@descartes \
--to=ruediger@c-plusplus.de \
--cc=15816-done@debbugs.gnu.org \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.