zsh-users
 help / color / mirror / code / Atom feed
From: rj <rj@panix.com>
To: zsh-users@zsh.org
Subject: Re: Is it possible to get a 4-char year in WATCHFMT
Date: Fri, 27 Feb 2015 17:02:58 -0500	[thread overview]
Message-ID: <20150227220258.GA22603@panix.com> (raw)
In-Reply-To: <20150227213906.GA25112@panix.com>

[-- Attachment #1: Type: text/plain, Size: 493 bytes --]


On Fri 27 at 04:39 PM -0500, rj <rj@panix.com> wrote:

> "%D" in WATCHFMT prints a 2-char year.  Is there a way one can get a 4-char
> year?  Does WATCHFMT take strftime sequences?


Actually, I see on one of my logins I was able to do it this way:

%D{%A      %Y-%m-%d}

Though I don't remember what "%A" does, and it isn't listed as an available
sequence in the "WATCHFMT" setion in man zshall.

man strftime says that *its* "%A" is "The full weekday name according to the
current locale."

[-- Attachment #2: Type: application/pgp-signature, Size: 195 bytes --]

  reply	other threads:[~2015-02-27 22:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-27 21:39 rj
2015-02-27 22:02 ` rj [this message]
2015-02-28  6:27   ` Bart Schaefer

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=20150227220258.GA22603@panix.com \
    --to=rj@panix.com \
    --cc=zsh-users@zsh.org \
    /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).