Hi,
In my project I need to know the timezone of a system, in format as EST5EDT or US/Eastern. It’s easy in all other UNIX system since the environment variable TZ is always defined on the system. However it’s not the case on Linux. Getenv(“TZ”) may return NULL on many systems. Anyone knows if there is any other ways to get the timezone information on Linux? Thank you very much.
En Zhu |