Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Make ztrftime pass more things to strftime
- X-seq: zsh-workers 35735
- From: "Jun T." <takimoto-j@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: PATCH: Make ztrftime pass more things to strftime
- Date: Wed, 8 Jul 2015 23:03:21 +0900
- In-reply-to: <CAHYJk3TnDVEUVuGSec7j5j7ATqtkFwMJcT-7WucH8sRdMv=X9g@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1436310900-9519-1-git-send-email-mikachu@gmail.com> <CAHYJk3TnDVEUVuGSec7j5j7ATqtkFwMJcT-7WucH8sRdMv=X9g@mail.gmail.com>
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