absl::TimeZone::At

Returns the civil time for this TimeZone at a certain absl::Time. If the input time is infinite, the output civil second will be set to CivilSecond::max() or min(), and the subsecond will be infinite.

Synopsis

Declared in <absl/time/time.h>

CivilInfo
At(Time t) const;

Description

Example:

const auto epoch = lax.At(absl::UnixEpoch()); // epoch.cs == 1969-12-31 16:00:00 // epoch.subsecond == absl::ZeroDuration() // epoch.offset == -28800 // epoch.is_dst == false // epoch.abbr == "PST"

Return Value

The civil-time information for t in this time zone.

Parameters

NameDescription
tThe absolute time to convert.