tzset
tzset is a C standard library function that initializes the program’s time zone information from the environment. It reads the TZ environment variable (if set) and updates global variables used by time-related functions such as localtime and mktime. After a call to tzset, these functions will interpret times according to the configured local time zone and daylight saving rules.
Prototype and scope: The function is declared in time.h as void tzset(void). It affects global state for
TZ environment variable and formats: tzset reads TZ to determine the local time zone. If TZ is
Portability and related functions: tzset is available on POSIX-compliant systems and, on Windows, a variant named