nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] AM/PM

2012-11-10 00:38:30
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.

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