Linux – How to check which timezone in Linux


Is there a way to check which time zone I'm currently in on Linux?

Best Answer

Usually, the TZ environment variable will tell you something useful. However, it is best to use functions such as mktime() and localtime() to convert between time_t and a local timezone representation. That is, don't try to do the conversion yourself.

Related Question