nmh-workers
[Top] [All Lists]

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

2014-12-16 21:33:13
I'm falling into the "both local and sender's times" camp.  B-)

Thanks, Ken, for posting the expression for showing both!

Now I'm hoping someone can help me figure out what's happening
with the "zone" function.

I tried to make it so that I see a copy of the "pretty" version
of the sender's date in local time.  Eventually I remembered the
"date2local" function previously discussed, but before that I
used the various date-component functions:

     
Date:formatfield="%<(nodate{text})%{text}%|%(pretty{text})%(void(szone{text}))%<(eq
1) (%(date2local{text})%(day{text}), %02(mday{text}) %(month{text})
%04(year{text}) %02(hour{text}):%02(min{text}):%02(sec{text})
%(zone{text}))%>%>"

For some reason, "zone" outputs a seemingly-nonsensical string
for the (numeric) timezone.  Here's an example:

     Mon, 15 Dec 2014 17:24:57 +0900 (Mon, 15 Dec 2014 00:24:57 -480)

I'm on the US west coast, so the local time (in parentheses)
should be "-0800" (not "-480").

Can someone explain why this happens?

Thanks!

Bob

_______________________________________________
Nmh-workers mailing list
Nmh-workers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>