From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8991 invoked by alias); 8 Jul 2015 14:40:38 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 35735 Received: (qmail 4181 invoked from network); 8 Jul 2015 14:40:37 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-Biglobe-Sender: Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: PATCH: Make ztrftime pass more things to strftime From: "Jun T." In-Reply-To: Date: Wed, 8 Jul 2015 23:03:21 +0900 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1436310900-9519-1-git-send-email-mikachu@gmail.com> To: zsh-workers@zsh.org X-Mailer: Apple Mail (2.1878.6) X-Biglobe-Spnum: 50716 2015/07/08 08:21, Mikael Magnusson wrote: > % print -P %D\{%x\} > 2015=E5=B9=B407=E6=9C=8808=E6=97=A5 > % print -P %D\{%Ex\} > =E5=B9=B3=E6=88=9027=E5=B9=B407=E6=9C=8808=E6=97=A5 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?=