Hi Neo,
"Neo" <ni*******@yaho o.com> schrieb im Newsbeitrag
news:86******** *************** ***@posting.goo gle.com...
Can anybody help me in writing a standard C++ program to set timezone to
CST ?
Refer to the documentation of your compiler's or OS's libraries.
Most C libraries' time functions (defined in "time.h") evaluate an
environment variable (like TZ) to detect the time zone in a UNIX-compatible
manner. Some libraries contain functions like "tzset()" to set the time
zone. That stuff existed before C++ so it's an anachronism really.
It's better to write conditional code for every platform (operating system)
you want to support and use the platform's specific time zone function which
you find in the OS's programming documentation.
I hope that helps.
Regards,
Ekkehard Morgenstern.