On Linux, I need to find the currently configured timezone as an Olson location. I want my (C or C++) code to be portable to as many Linux systems as possible.
For e
According to this page, it looks like if you #include it will declare the following.
#include
void tzset (void); extern char *tzname[2]; extern long timezone; extern int daylight;
Does that give you the information that you need?