reg query HKEY_LOCAL_MACHINE\System\
Main Topics
Browse All TopicsHi, I am using a batch file to create a log file that will be emailed to the outside world. I would like to include my current time zone (EDT or EST) with the timestamp, but I can't find a command that shows the time zone. I am on Windows 2000.
echo %TIME%
gives:
20:06:42.73
time /t
gives:
8:07p
NET TIME
gives:
Current time at \\XXXNAME is 7/30/2005 8:08 PM
The command completed successfully.
Is the zone available to be displayed in a command window?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
for /f "tokens=1,2*" %%K in ( ' reg query HKEY_LOCAL_MACHINE\System\
echo my timezone is: %timezone%
for /f "tokens=1,2*" %%K in ( ' reg query \\yourhostname\HKEY_LOCAL_
echo your timezone is: %yourtimezone%
oh yeah, we should also check DaylightStart and StandardStart values in the same key to see if we should use DaylightName instead, but most folks will be able to figgure out if it's summer, so i haven't bothered to do that yet.
Simply use the same for loop to pull those starts, then do the math to convert the binary and compare against current date.
uhhh, oBdA? Steve? i'm being called upstairs to the wife again.
Good Luck (\o/)
Business Accounts
Answer for Membership
by: Zamba1Posted on 2005-07-30 at 18:44:07ID: 14563409
I don't know of an appropriate command either, but you always have the possibiltiy to read it from the Registry.
CurrentCon trolSet\Co ntrol\Time ZoneInform ation\Stan dardName
m/Article/ ArticleID/ 14966/ 1496 6.html?Ad= 1
om/kb/2075 63/en-us
The name of the current time zone can be found in:
HKEY_LOCAL_MACHINE\System\
Links:
"Where do Windows 2000 and Windows NT store time zone information?"
http://www.windowsitpro.co
"How To Remotely Check the Time Zone on Windows NT"
http://support.microsoft.c