nmh-workers
[Top][All Lists]
Advanced

[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: Sat, 10 Nov 2012 00:13:50 -0600

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

er, 00:09am?
only works right for 23 of 24 hours?
can you add if hour == 0 then hour = 12?
my perl code had the same bug.

steve
--



reply via email to

[Prev in Thread] Current Thread [Next in Thread]