* %D{} wonkiness
@ 2007-12-15 23:32 Mikael Magnusson
2007-12-16 7:44 ` Andrey Borzenkov
0 siblings, 1 reply; 3+ messages in thread
From: Mikael Magnusson @ 2007-12-15 23:32 UTC (permalink / raw)
To: zsh-workers
%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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-12-16 13:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-15 23:32 %D{} wonkiness Mikael Magnusson
2007-12-16 7:44 ` Andrey Borzenkov
2007-12-16 13:13 ` Mikael Magnusson
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).