Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: Make ztrftime pass more things to strftime



2015/07/08 08:21, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> % print -P %D\{%x\}
> 2015年07月08日
> % print -P %D\{%Ex\}
> 平成27年07月08日

It works for %Ex but not for %Ey.
ztrftime() does not send %Ey to strftime() but ignores E and
handles %y by itself.

% date +%y
15
% date +%Ey
27
% print -P '%D{%y %Ey}'
15 15

Is it possible to pass the entire format string to strftime()
if HAVE_STRFTIME is defined?


Messages sorted by: Reverse Date, Date, Thread, Author