nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] AM/PM

2012-11-07 13:49:06

On Wed, Nov 7 2012 at 2:43pm EST, Ken Hornstein <kenh(_at_)pobox(_dot_)com> 
wrote:
On %(day{date}), %(month{date}) %(mday{date}) %(year{date}) at 
%02(void(hour{date}))%(
modulo 12):%02(min{date})%02(void(hour{date}))%<(gt 11)pm%|am%> 
%(tzone{date}),
%<{from}%(void{from})%?(void{apparently-from})%|%(void{sender})%>%(trim)%(putstr)
wrote:

I _think_ instead of:

     %02(void(hour{date}))%(modulo 12)

you want:

     %(void(hour{date}))%02(modulo 12)

void doesn't output anything (that's the whole point of it) so you
want the format string to apply to the guy who does do the output,
the modulo operator.

I noticed that after I send my reply.  Suprisingly 13:02 still gets morphed
into 1:02pm.  "Meh".

steve
--

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>