Jan. 14, 2009
11:49 p.m.
On Thursday, January 15 2009, "Robert Elz" wrote to "John Dlugosz, tz@lecserver.nci.nih.gov" saying:
No, tm_zone (which I mistakenly called tm_tzname last time) is the "proper" way to get the abbreviation associated with a time_t (after a call to localtime() of course). That one is perfectly safe (just call localtime_r() if you need it).
Actually, this isn't true -- tm_zone isn't safe if the value of the "TZ" environment variable is changed. (This is true even in single-threaded code, in fact.) -- Jonathan Lennox lennox@cs.columbia.edu