The ftcs unix mktime use the function tzset to initialize time
conversion information by setting an environment variable. That is not
As I want to work in multi_threaded design with different time-zone, one
per each thread, I can't use the unix standard fonctions like mktime. I
need a thread-safe function that converts a local-time attached to its
timezone into a GMT time as follow:
void localtime_to_gmt(const char * timezone, const struct tm
localtime, time_t * gmt_time);
Is there a sofftware which uses instead of TZ env variable a local time
zone variable attached to the process to convert a local time to GMT ?
Thanks for your help ?
Fran?ois REYGAGNE. Software Architect.
opt[e]way S.A., 2881 route des Crtes, BP308
06906 Sophia Antipolis Cedex, FRANCE
tl: +33 (0)4 92 95 27 01 http://www.opteway.com