format string: time for today, date for others.

2011-01-05 Thread Yue Wu
Hi list, Is there a date/time string that show the time only for today's emails but date for else? So, in the index, the emails that got today will show the time only, but the ones that got on other days will show the date and time. -- Regards, Yue Wu Key Laboratory of Modern Chinese Medicines

Re: format string: time for today, date for others.

2011-01-05 Thread David Champion
* On 05 Jan 2011, Yue Wu wrote: Hi list, Is there a date/time string that show the time only for today's emails but date for else? So, in the index, the emails that got today will show the time only, but the ones that got on other days will show the date and time. Not in out-of-box mutt.

Re: format string: time for today, date for others.

2011-01-05 Thread Toby Cubitt
On Wed, Jan 05, 2011 at 04:32:44PM -0600, David Champion wrote: * On 05 Jan 2011, Yue Wu wrote: Hi list, Is there a date/time string that show the time only for today's emails but date for else? So, in the index, the emails that got today will show the time only, but the ones that got

Re: format string: time for today, date for others.

2011-01-05 Thread David Champion
* On 05 Jan 2011, Toby Cubitt wrote: If I remember correctly, the date_conditional patch doesn't *quite* let you have a different date/time string for today, rather it gives you a different date/time string for the last 24h. The best documentation I've seen is the changelog entry that I

Re: format string: time for today, date for others.

2011-01-05 Thread Andreas Kneib
Hi, * Yue Wu schrieb am Donnerstag, den 06. Januar 2011: Is there a date/time string that show the time only for today's emails but date for else? So, in the index, the emails that got today will show the time only, but the ones that got on other days will show the date and time. I use this

Re: format string: time for today, date for others.

2011-01-05 Thread Toby Cubitt
On Wed, Jan 05, 2011 at 05:20:19PM -0600, David Champion wrote: * On 05 Jan 2011, Toby Cubitt wrote: If I remember correctly, the date_conditional patch doesn't *quite* let you have a different date/time string for today, rather it gives you a different date/time string for the last

Re: format string: time for today, date for others.

2011-01-05 Thread David Champion
* On 05 Jan 2011, Toby Cubitt wrote: Yes, but how would you use this to e.g. print only the time for all emails received today, but print the date for all emails received yesterday or earlier? A split point of 24h is no use. If it's currently That's what nested_if is for. Here is the date

Re: format string: time for today, date for others.

2011-01-05 Thread Toby Cubitt
On Wed, Jan 05, 2011 at 07:22:18PM -0600, David Champion wrote: * On 05 Jan 2011, Toby Cubitt wrote: Yes, but how would you use this to e.g. print only the time for all emails received today, but print the date for all emails received yesterday or earlier? A split point of 24h is no