Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Possible bug?
- X-seq: zsh-workers 9179
- From: pollux <duret_g@xxxxxxxx>
- To: Mike Perez <mike@xxxxxx>
- Subject: Re: Possible bug?
- Date: 02 Jan 2000 01:51:27 +0100
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: Mike Perez's message of "Sat, 1 Jan 2000 03:05:05 -0800"
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <20000101030505.A1857@xxxxxxxxxxxxxxxxxxxxx>
>>> "Mike" == Mike Perez <mike@xxxxxx> writes:
[...]
Mike> RPROMPT='[%D{%b %d, %G} / %t]'
Mike> And on the prompt, it displays this:
Mike> mike@mindcrime: ~> [Jan 01, 1999 / 3:04AM]
Mike> But date says this:
Mike> Sat Jan 1 03:04:42 PST 2000
Since the ISO week is 52, %G is still saying 1999, wich is right.
%G The ISO 8601 year with century as a decimal number.
The 4-digit year corresponding to the ISO week num
ber (see %V). This has the same format and value
as %y, except that if the ISO week number belongs
to the previous or next year, that year is used
instead.
You may want to use %Y instead.
Mike> - Mike
--
Alexandre Duret-Lutz
Messages sorted by:
Reverse Date,
Date,
Thread,
Author