absl::ToTM

Converts the given absl::Time to a struct tm using the given time zone. See ctime(3) for a description of the values of the tm fields.

Synopsis

Declared in <absl/time/time.h>

tm
ToTM(
    Time t,
    TimeZone tz);

Return Value

The broken-down time corresponding to t in tz.

Parameters

NameDescription
tThe time to convert.
tzThe time zone to convert in.