[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] AM/PM
From: |
rader |
Subject: |
Re: [Nmh-workers] AM/PM |
Date: |
Wed, 07 Nov 2012 13:29:55 -0600 |
> On Wed, Nov 7 2012 at 2:22pm EST, Ken Hornstein <address@hidden> wrote:
>
> >Or maybe somebody's already generating AM/PM format using the existing
> >formation functions!?
>
> And .... you can!
>
> %(hour12) = %(void(hour{date}))%(modulo 12)
>
> %(ampm) = %(void(hour{date}))%<(gt 11)PM%|AM%>
>
> Replace 'date' with your component of choice.
Super mh-format-fu!
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:
Please QA?
Or not.
It works.
Thanks.
steve
--