[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

From: Bob Carragher
Subject: Re: [Nmh-workers] date math -- format help???
Date: Tue, 16 Dec 2014 19:31:25 -0800

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:

1) (%(date2local{text})%(day{text}), %02(mday{text}) %(month{text})
%04(year{text}) %02(hour{text}):%02(min{text}):%02(sec{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?



reply via email to

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