In a Linux environment working in C++, I need to convert a time_t value into an English string representation for various time zones. e.g. 1305750080 -> “2011-05-18 13:21:20 PST”. I am able to use gmtime() or localtime() combined with strftime() to generate strings for GMT and my local timezone. How would I select an alternative time zone?
Share
I think you can do this with tzset.