At the end of October, my system's clock automatically changed back
from Daylight to Standard time. But my TheBat! reply template changed
only partially. The time show is right, but I noticed today (several
weeks late!) that the time zone had to be corrected manually.



I %INCLUDE the following file in my reply template:

%WRAPPED='%SETPATTREGEXP="(?m-s)^Date\:\s*?((.*?[\d]{4})\s*?([\d]{0,2}\:%-
[\d]{0,2}\:[\d]{0,2})\s*?(.*))"%-
%REGEXPBLINDMATCH="%HEADERS"%-
%SUBPATT="2" %SUBPATT="3"[GMT%SUBPATT="4"]%-
 (%OTIME EST here)
 


Is there a way I can fix my template, so that "EST" or "EDT" will be
given in the quote, in automatic accordance with my system time?

I have no idea of how to do it, but I thought that I might want to:
  1. Compute (or get) the original message's GMT hour.
  2. Compute the difference between the message's GMT hour and the
     %OTIME hour.
  3. If the difference is 5 hours, "EST" will be used.
  4. If the difference is not 5 hours "EDT" will be used.



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

Reply via email to