Function libtz_sys::localtime_rz
source · Expand description
Convert system time to local time using passed-in time zone.
Rust interface for the C function:
struct tm *localtime_rz(timezone_t restrict, time_t const *restrict, struct tm *restrict);
This acts like localtime_r except it uses the passed in TimezoneT instead of the shared global
configuration. The pointer returned in Tm::tm_zone will be valid until the TimezoneT is freed
with tzfree().