localtime_rz

Function localtime_rz 

Source
pub unsafe extern "C" fn localtime_rz(
    tz: TimezoneT,
    timep: *const TimeT,
    tmp: *mut Tm,
) -> *mut Tm
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().