title: How to get UTC time offset in c++ with windows os
body: <p>My question is pretty simple. How can I get the UTC offset for Philippines which is +8 and for Japan which is +9, and convert that to integer.</p>
  
  <p>Any suggestions is a great help. Thank you.</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>For further explanation, I have a c++ desktop application, and I need to automatically detect its timezone wherever the application is used. Like if the application will be used in Japan, the timezone offset for japan will be used. Is that possible?</p>