Tech Community Live: Windows edition
May 31 2023, 07:30 AM - 11:30 AM (PDT)
Microsoft Tech Community
LIVE
Our VC++ studio 6.0 application uses _timezone variable. Where does it get that value from? From the system clock or msvcrt.dll?
Published Jan 08 2019 01:51 PM 213 Views
Microsoft
First published on TECHNET on Mar 07, 2007
Q: Our VC++ studio 6.0 application uses _timezone variable. Where does it get that value from? From the system clock or msvcrt.dll?
A: Environment variables are provided by the parent process, which includes system-wide settings. Also, a process can change its own environment block using the following functions:  _tzset(), _putenv(), _wputenv(), _putenv_s(), _wputenv_s(), SetEnvironmentVariable()

Version history
Last update:
‎Jan 08 2019 01:51 PM
Updated by: