T
Tharinda
Hi,
I have this problem of converting a set of times (from 2009)
reported in GMT (you may assume this as UTC) to different local times.
Further I have to consider the daylight savings settings applicable at
that time. It seems this is very difficult in c++ since the timezone
information is taken from the environment variable and I cannot find a
thread safe way to set the environment variables.
Is there any way of getting date time converted to local time by
specifying the GMT and the timezone ?
something like convert_to_local(tm *pTime, const char *TZ)
Thanks in advance!
Tharinda
I have this problem of converting a set of times (from 2009)
reported in GMT (you may assume this as UTC) to different local times.
Further I have to consider the daylight savings settings applicable at
that time. It seems this is very difficult in c++ since the timezone
information is taken from the environment variable and I cannot find a
thread safe way to set the environment variables.
Is there any way of getting date time converted to local time by
specifying the GMT and the timezone ?
something like convert_to_local(tm *pTime, const char *TZ)
Thanks in advance!
Tharinda