On Mon, Aug 21, 2000 at 10:55:09 -0400, Hardy Merrill wrote:
> I'd like to re-format my "index_format" date
>
> from "Aug 21"
> to "Aug 21 08:45:09"
>
> My current index_format, before changing it, looks like
> set index_format="%3C%?M?+& ?%Z %[%b %d] %-16.16F [%-9.9O] %-33.33s (%4l)
>
> So I left that as it is because it contains %[%b %d] which should
> contain the date (currently displaying "Aug 21",
Exactly.
> and I uncommented the "date_format" - it now looks like this
> set date_format="!%a, %b %d, %Y at %I:%M:%S%p %Z"
>
> I left it that just because I wanted to see how it looked,
> but low-and-behold the date is still displayed as "Aug 21".
>
> What am I doing wrong/not doing right?
Your index_format doesn't use date_format. The codes inside
"%[some codes]" is formatted by C-library function strftime().
Try e.g. "man strftime" to see the available formatting codes for
strftime().
You may want to change "%[%b %d]" to "%[%b %d %H:%M:%S]".
The date_format string is also formatted by strftime(), but it is
only used where there is a %d or %D in the index_format (%d or %D
inside %[...], %{...}, %(...), or %<...> constructs don't count
here).
--
Byrial
http://home.worldonline.dk/~byrial/