nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] date math -- format help???

2014-12-17 08:53:31
Bob wrote:

By the way, there seems to be a formatting bug with "zone"
when specifying wide fields with "leading" zeros.  For example,
if you specify the Date: field this way

     Date:formatfield="%<(nodate{text})%{text}%|%(pretty{text})%(void(szone{t
ext}))%<(eq
1) %(date2local{text})%08(zone{text})%>%>"

You get

     Tue, 16 Dec 2014 23:24:30 -0500 0000-480

I'm guessing negative integers were not expected by the
padding function?  And perhaps it was also fixed with 1.6
(or afterward)?

It hasn't been fixed.  1.6 does provide fmttest -trace, which helps
isolate the problem.  The number formatting function pads after
inserting the - sign, ooops.  I'll fix it tonight.

David

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