Blog Post

Daylight Saving Time & Time Zone Blog
1 MIN READ

Our VC++ studio 6.0 application uses _timezone variable. Where does it get that value from? From the system clock or msvcrt.dll?

Nakul_Bhagat's avatar
Nakul_Bhagat
Iron Contributor
Jan 08, 2019
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()

Updated Jan 08, 2019
Version 2.0
No CommentsBe the first to comment