local date
Greets. Is there any intuitive way to get the ``Date:'' header (as shown in the pager) to always show the time converted to my local time zone, or GMT, or any given time zone so long as it's consistent across all messages? Thanks, Keith
Re: local date
On Tue, Sep 10, 2002 at 01:09:05PM -0400, Keith R. John Warno wrote: Is there any intuitive way to get the ``Date:'' header (as shown in the pager) to always show the time converted to my local time zone? Well, I don't know how intutive it is, but there is an easy way to do it. Simply replace %d with %D in the value of the $index_format configuration variable. If you have't specified a custom $index_format, the default is %4C%Z%{%b %d} %-15.15L (%4l)%s, so if you set it to %4C%Z%{%b %D} %-15.15L (%4l)%s you should be good. That is, you need to put set index_format=%4C%Z%{%b %D} %-15.15L (%4l)%s in your .muttrc or .mutt/muttrc. -- Mark REED| CNN Internet Technology 1 CNN Center Rm SW0831G | [EMAIL PROTECTED] Atlanta, GA 30348 USA | +1 404 827 4754 -- Q: What do you call a blind pre-historic animal? A: Diyathinkhesaurus. Q: What do you call a blind pre-historic animal with a dog? A: Diyathinkhesaurus Rex.
Re: local date
On Tue, Sep 10, 2002 at 01:48:19PM -0400, Mark J. Reed wrote: Simply replace %d with %D in the value of the $index_format Whups, I lied. I mean, that would be correct if you were using %d *outside* of %{...}, but stuff inside %{...} is strftime(3) format characters, not mutt format characters. To use local time instead of sender's time with the same strftime format, just change the {} to []: set index_format=%4C%Z%[%b %d] %-15.15L (%4l)%s -- Mark REED| CNN Internet Technology 1 CNN Center Rm SW0831G | [EMAIL PROTECTED] Atlanta, GA 30348 USA | +1 404 827 4754 -- Disk crisis, please clean up!
Re: local date
On Tue, Sep 10, 2002 at 01:58:54PM -0400, Mark J. Reed wrote: On Tue, Sep 10, 2002 at 01:48:19PM -0400, Mark J. Reed wrote: set index_format=%4C%Z%[%b %d] %-15.15L (%4l)%s To see the local time as well as the date in the pager, you might also want to set 'pager_format'. This is what I use: set pager_format=%4C %Z %[!%b %e at %I:%M %p] %.20n %s # This format is arranged more # like the index_format and # includes the local time at # which the message was sent. # Default: -%Z- %C/%m: %-20.20n %s HTH, Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | Spokane, Washington, USA http://www.spocom.com/users/gjohnson/mutt/ |
Re: local date
- On Tue, 10.Sep.2002, 13:58EDT, Mark J. Reed uttered: On Tue, Sep 10, 2002 at 01:48:19PM -0400, Mark J. Reed wrote: Simply replace %d with %D in the value of the $index_format Whups, I lied. I mean, that would be correct if you were using %d *outside* of %{...}, but stuff inside %{...} is strftime(3) format characters, not mutt format characters. To use local time instead of sender's time with the same strftime format, just change the {} to []: set index_format=%4C%Z%[%b %d] %-15.15L (%4l)%s Ah yes this works well for the index itself. Thanks! However it would be useful to do the same conversion-to-local-TZ for the 'Date:' header in the pager. Any ideas? Regards, Keith
Re: local date
- On Tue, 10.Sep.2002, 15:05EDT, Gary Johnson uttered: On Tue, Sep 10, 2002 at 01:58:54PM -0400, Mark J. Reed wrote: On Tue, Sep 10, 2002 at 01:48:19PM -0400, Mark J. Reed wrote: set index_format=%4C%Z%[%b %d] %-15.15L (%4l)%s To see the local time as well as the date in the pager, you might also want to set 'pager_format'. This is what I use: set pager_format=%4C %Z %[!%b %e at %I:%M %p] %.20n %s # This format is arranged more # like the index_format and # includes the local time at # which the message was sent. # Default: -%Z- %C/%m: %-20.20n %s HTH, Gary D'oh! That's the trick. Thanks a bunch to you and Mark for the quick feedback. I'll RTFM... again. :) -- Isn't it time we care and lose the hate Understand our fears -- Dream Theater, Blind Faith