Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh TZ



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