Hi Januk,
Sun, 17 Nov 2002 22:55:10[GMT -0800] (1:55 AM EST here) you wrote:
> Hello Januk,
> It was Saturday, November 16, 2002 at 11:47 PM, when I [JA] wrote:
JA>> Yes, use the following to compute your timezone offset:
> <snip>
JA>> The TZOffset QT seems to work on all sample messages here, but your
JA>> mileage may vary.
> Unfortunately this fails when the two timezones (yours and your
> correspondent) happen to be on different days at the time the original
> message was sent. The general fix is not trivial with TB. I can give
> you an error-prone fix right now, but the general fix is still
> elusive.
I think that if we calculate/read the message's GMT hour, we can only
be off by 0 hours, + 24 hours, or -24 hours, because GMT is GMT no
matter which side of the International Date Line the message was sent
from. I infer that there are only twelve (a very finite number) of
possible offsets:
EDT: -4, -28,
-4+24=+20, -28+24=-4
-4-24=-28, -28-24=-52
EST: -5, -29,
-5+24=+19, -29+24=-5
-5-24=-29, -29-24=-53
I can modify TZSelect to check for twelve (rather than four) offsets,
if you think it necessary.
===========================
It occurs to me that Windows knows what time zone my clock thinks it's
in, and Windows knows (or has calculated) whether to keep Daylight or
Standard Time. Can Window's brain be picked?
What do you think?
Using The Bat! v1.61
on Windows 95 4.0 Build 1111 B
--
Daniel A. Grunberg Kensington, Maryland, USA
homepage: www.nyx.net/~dgrunber/
________________________________________________________
Current version is 1.61 | "Using TBTECH" information:
http://www.silverstones.com/thebat/TBUDLInfo.html