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

From: Eli Zaretskii <[email-masked]>
Date: Wed, 06 Nov 2013 19:26:56 +0200

> From: Rüdiger Sonderfeld <[email-masked]>
> Cc: [email-masked], [email-masked]
> Date: Wed, 06 Nov 2013 14:31:04 +0100
> 
> 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.)

All of them are supported, with the single exception of %r.