absl::ToCivilYear

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

Synopsis

Declared in <absl/time/time.h>

CivilYear
ToCivilYear(
    Time t,
    TimeZone tz);

Return Value

The year-aligned civil time.

Parameters

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