Tue, 13 Jan 2004 06:01:55 +1100 (2:01 PM EST Mon here) S & J Love wrote:
> I was thinking it would be good to have an indication of time zone > (TZ). eg where I am (New South Wales, Australia), the time zone > (with daylight saving) is GMT + 1100. Of course message headers > include indications of time zone... I posted a template for my time zone at http://www.silverstones.com/thebat/Library.html#activetimezone . Terry L Fritts and Januk Aggarwal showed me the way in recent posts on TBtech. They suggested downloading a plug-in from http://en.barin.com.ua/soft/mymacros/ , unzipping the downloaded file, and adding the mymacros.tbp to TheBat! as follows: TheBat! | Options | Preferences | Plug-ins | Add On my system (and probably on yours), once the mymacros plug-in has been added, using %RegRead(HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\ActiveTimeBias) in a template returns the number of minutes by which UTC differs from my computer's time of day. Where I live, the time is either: EST [GMT-0500], when GMT is 5 hours, i.e. 300 minutes, ahead of my system time. or EDT [GMT-0400], when GMT is 4 hours, i.e. 240 minutes, ahead of my system time. Since ActiveTimeZone is one of my Quick Templates, using %QINCLUDEActiveTimeZone in a template returns my seasonally adjusted time zone. You need to change my numbers of minutes (two places, each surrounded by quotes) and my time zone abbreviations (two places, each surrounded by quotes) appropriately, to make ActiveTimeZone work on your system. ==== ActiveTimeZone ==== %- %IF(%RegRead(HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\ActiveTimeBias)="300","EST")%- %- %IF(%RegRead(HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\ActiveTimeBias)="240","EDT")%- %- ==== End QT ==== Using: The Bat! v2.02.3 CE Windows 2000 v5.0 - Build 2195 - Service Pack 4 -- Daniel A. Grunberg Kensington, Maryland, USA homepage: www.nyx.net/~dgrunber/ ________________________________________________ Current version is 2.02.3 CE | "Using TBUDL" information: http://www.silverstones.com/thebat/TBUDLInfo.html