[Top][All Lists]

[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 06:30:53 -0600

 > >er, 00:09am?
 > >only works right for 23 of 24 hours?
 > I think you mean 22 of 24 hours, right?  Because at noon it will do the same
 > thing.
 > >can you add if hour == 0 then hour = 12?
 > Man, I have to write your code for you too?? :-)
 > nmh does come with all of the tools to write/debug your own format stuff,
 > (and it's even all documented!) but I think this should work:
 >      %(void(hour{date}))%(void(modulo 12))%<(zero)12%|%02(putnumf)%>
 > Does that work?  Yes, it does!  Wasn't sure if zero would overwrite the
 > num register ... I guess in this case it does not.


Maybe next time I'll actually dig into fmtdump.


reply via email to

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