How can I get current machine UTC offset?

Started by stevengraff, January 19, 2014, 07:50:50 AM

Previous topic - Next topic

stevengraff

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


stevengraff

Thanks a lot for that, snow.

I'm going with:

activebias = RegQueryDWORD( @REGMACHINE,'SYSTEM\CurrentControlSet\Control\TimeZoneInformation[ActiveTimeBias]')
machinegmtoffset = int ( ( activebias / 60 ) * ( -1 ) ) ;