absl::LoadTimeZone

Loads the named zone. May perform I/O on the initial load of the named zone. If the name is invalid, or some other kind of error occurs, returns false and *tz is set to the UTC time zone.

Synopsis

Declared in <absl/time/time.h>

bool
LoadTimeZone(
    std::string_view name,
    TimeZone* tz);

Return Value

true if the zone was loaded successfully.

Parameters

NameDescription
nameThe TZ identifier of the zone to load.
tzOutput parameter receiving the loaded time zone.