title: How to calculate UTC offset from IANA timezone name in C
body: <p>I have timezone names like Europe/Paris , America/New_York as described in<br />
  <a href="https://en.wikipedia.org/wiki/List_of_tz_database_time_zones" rel="nofollow noreferrer">https://en.wikipedia.org/wiki/List_of_tz_database_time_zones</a></p>
  <p>Given these strings (like &quot;Europe/Paris&quot;) I want to know the UTC offset in seconds for these timezones.</p>
  <p>One way I can think of is play with TZ environment variables to set timezone and calculate offset.But I am able to figure out exactly how to do this.</p>
  <p>I am working in C on linux.</p>
  <p>Need your suggestions!</p>