Converts an absolute time to a second‐aligned civil time in a time zone.

Synopsis

Declared in <absl/time/time.h>

CivilSecond
ToCivilSecond(
    Time t,
    TimeZone tz);

Description

Helpers for TimeZone::At(Time) to return particularly aligned civil times.

Example:

absl::Time t = ...; absl::TimeZone tz = ...; const auto cd = absl::ToCivilDay(t, tz);

Return Value

The second‐aligned civil time.

Parameters

Name

Description

t

The absolute time to convert.

tz

The time zone to convert in.

Created with MrDocs