Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
%D{} wonkiness
- X-seq: zsh-workers 24261
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: zsh-workers <zsh-workers@xxxxxxxxxx>
- Subject: %D{} wonkiness
- Date: Sun, 16 Dec 2007 00:32:36 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=qQ7oPqtxdsdspZK3MF9/xFoibxnNdbb8YKTe36tAcZc=; b=pelM4S7fES7+Pdyxi33lz711fri7o/0OYEJnYZqeTacxkspebLwd4ELjfs7PAon1OuqiEqSQ8jYO6TgGb8L+GgsyIKjAKjDgnY4ANDJ5q/+go72WN9AyOTgBNYa/J3YUIWg0I4eXBZYUgPJNGhCyFdRoFxVfJjvquRbT3lcgGsI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Q8e3xTdUmzwUxuJKcgUTxB/jLkVLZdOWgWyR4jnNPKb2/q4oaHfbD3kFpHLHUtOJ/ruxIatxD0fqO+8Mvr1fOsxLIm1lxcbGiPq0tV8A+wKcJnhpARAYeesAG3pZHLOjcoHlZsbq897mLUSKcoCfueKOINRxaaC8QHKi9awJu9M=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
%D{string}
string is formatted using the strftime function. See
strftime(3) for more
details. Three additional codes are available: %f
prints the day of the
month, like %e but without any preceding space if
the day is a single
digit, and %K/%L correspond to %k/%l for the hour of the
day (24/12 hour
clock) in the same way.
This is what happens when I try it:
% strftime %T $EPOCHSECONDS
00:28:42
% print -P %D{%T}
07-12-16 07-12-16T
% print -P %D{12345}
07-12-161 07-12-162 07-12-163 07-12-164 07-12-165
It seems to just print the date #string times followed by each character?
It works as prescribed on my friend's computer that has 4.3.4 and
another one with 4.2.5.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author