<<< Date Index >>>     <<< Thread Index >>>

Re: Display of the '%Z' variable in 'index_format' and 'attribution'



* On Mon, Feb 02, 2004 Tobias Mummert (doczook@xxxxxxxxxx) muttered:
> mutt 1.5.6i
> 
> The 'index_format' displays the '%Z' inside of %{} as the timezone
> (e.g., CET), but in 'attribution' I get the numeric timezone (e.g.,
> +0100).

strftime actually.


> set index_format = "... [%[!%d/%m/%y - %H:%M %4Z]]"
>                                              ^^^
> results in
> ... [02/02/04 - 02:47  CET]
>                       ^^^^
> while
> 
> set attribution = "... [%{!%Y-%m-%d %H:%M %Z}]:\n"
>                                           ^^
> results in
> ... [2004-02-02 02:47 +0100]:
>                       ^^^^^
> I used the %{}, %[], %() and %<> format of srtftime, without any other
> result.
> 
> How can I set the %Z in 'attribution' to get the timezone name instead
> of the timezone offset?

Limit the place for the expando as you did in the first expample. %{%4Z}
should show the timezone name then, too.

HTH,

Michael
-- 
Nobody said computers were going to be polite.

PGP-Key: http://www-stud.ims.uni-stuttgart.de/~tatgeml/public.key