Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh TZ
- X-seq: zsh-users 12318
- From: Atom Smasher <atom@xxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: zsh TZ
- Date: Wed, 12 Dec 2007 09:26:45 +1300 (NZDT)
- In-reply-to: <20071211163737.2fa0a5c3@news01>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Openpgp: id=0xB88D52E4D9F57808; algo=1 (RSA); size=4096; url=http://atom.smasher.org/pgp.txt
- References: <20071211101418.75341.qmail@xxxxxxxxxxx> <20071211163737.2fa0a5c3@news01>
On Tue, 11 Dec 2007, Peter Stephenson wrote:
Rather than strftime(), it may well be how the system stores the time
zone as a string. I don't think the shell can do anything about it.
However, you could consider %z, which returns the hour offset, which is
more useful for calculations.
====================
i'm using it in a prompt <http://smasher.org/zsh/>, so i'm partial towards
the more intuitive %Z form. in any case, i re-did it so it's only showing
the part after the slash... ie; on some systems it will "EST" and on some
systems it will show "New_York", but it won't show "America/New_York"
which just takes up too much space in the prompt.
http://smasher.org/zsh/zsh-prompt-root.png
--
...atom
________________________
http://atom.smasher.org/
762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
-------------------------------------------------
"Any sufficiently advanced technology
is indistinguishable from magic."
-- Arthur C. Clarke
Messages sorted by:
Reverse Date,
Date,
Thread,
Author