nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] AM/PM

2012-11-07 13:43:27
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.

--Ken

_______________________________________________
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>