I need to find out the difference in time of the current machine vs. GMT or UTc.
I bet this is not too hard... maybe it's in a registry entry? or an extender command? It is in the Windows Control Panel.
Thanks,
Steven
Search the tech db.
It looks like:
http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/tsleft.web+WinBatch/Time~-~Timer~and~Date~Functions/Samples~from~Users+Convert~UTC~Time.txt (http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/tsleft.web+WinBatch/Time~-~Timer~and~Date~Functions/Samples~from~Users+Convert~UTC~Time.txt)
has some helpful stuff.
Thanks a lot for that, snow.
I'm going with:
activebias = RegQueryDWORD( @REGMACHINE,'SYSTEM\CurrentControlSet\Control\TimeZoneInformation[ActiveTimeBias]')
machinegmtoffset = int ( ( activebias / 60 ) * ( -1 ) ) ;