I am writing a application to convert utc-time to different timezones, now I can use something like this
putenv("TZ=TIMEZONE1");
tzset()
...
do time conversions
but I don’t think it is thread safe, so is there any C/C++ library which can do timezone conversion by taking timezone as argument to function instead of being some global
Boost.DateTime supports time-zone conversions.