Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: zsh-3.1.2-zefram3: 12 hour clock in prompts
- X-seq: zsh-workers 3721
- From: Andrew Main <zefram@xxxxxxxxx>
- To: pws@xxxxxxxxxxxxxxxxxxx
- Subject: Re: PATCH: zsh-3.1.2-zefram3: 12 hour clock in prompts
- Date: Fri, 16 Jan 1998 14:27:48 +0000 (GMT)
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: <9801161314.AA38808@xxxxxxxxxxxxxxxxxxx> from "pws@xxxxxxxxxxxxxxxxxxx" at Jan 16, 98 02:14:51 pm
pws@xxxxxxxxxxxxxxxxxxx wrote:
>It looks (as I mentioned before) as if someone has rationalised the %l
>strftime sequence to do the same as in strftime(), i.e. print a space
>before a number less than 10 in an hour given in 12-hour format.
Hmm.
ztrftime() is disgusting. I'd really like to strip it down to what POSIX
requires date(1) to handle (and make it really POSIX conformant) -- to
hell with existing users, it's used almost purely for prompts. Then do
what should have been done with strftime() from the start: add flags to
the % sequences to specify the type of fill. What do people think?
-zefram
Messages sorted by:
Reverse Date,
Date,
Thread,
Author