absl::ToCivilHour

Converts an absolute time to an hour-aligned civil time in a time zone.

Synopsis

Declared in <absl/time/time.h>

CivilHour
ToCivilHour(
    Time t,
    TimeZone tz);

Return Value

The hour-aligned civil time.

Parameters

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