tzset

Function tzset 

Source
pub unsafe extern "C" fn tzset()
Expand description

Re-read TZ environment variable and configure global time zone.

Rust interface for the C function:

void tzset(void);

The tzset function acts like tzalloc(getenv("TZ")), except it saves any resulting timezone object into internal storage that is accessed by localtime_r, and mktime. The anonymous shared timezone object is freed by the next call to tzset. If the implied call to tzalloc fails, tzset falls back on Universal Time (UT).