zsh-workers
 help / color / mirror / code / Atom feed
From: "Mikael Magnusson" <mikachu@gmail.com>
To: zsh-workers <zsh-workers@sunsite.dk>
Subject: %D{} wonkiness
Date: Sun, 16 Dec 2007 00:32:36 +0100	[thread overview]
Message-ID: <237967ef0712151532y2acea629pecc9728f46b1ed4b@mail.gmail.com> (raw)

       %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


             reply	other threads:[~2007-12-15 23:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-15 23:32 Mikael Magnusson [this message]
2007-12-16  7:44 ` Andrey Borzenkov
2007-12-16 13:13   ` Mikael Magnusson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=237967ef0712151532y2acea629pecc9728f46b1ed4b@mail.gmail.com \
    --to=mikachu@gmail.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).