Without it, the program just fallback to UTC.
/etc/localtime and $TZ are two ways to specify timezone for programs. The program look up the later first, if it’s empty and then use /etc/localtime. In theory, $TZ has better performance because of the glibc will not look up the last modified time of /etc/localtime when every calling of localtime lookup.
Without it, the program just fallback to UTC.
/etc/localtime
and$TZ
are two ways to specify timezone for programs. The program look up the later first, if it’s empty and then use/etc/localtime
. In theory,$TZ
has better performance because of the glibc will not look up the last modified time of/etc/localtime
when every calling of localtime lookup.