absl::TimeZone::At

At overloads

Synopses

Declared in <absl/time/time.h>

Returns an absl::TimeInfo containing the absolute time(s) for this TimeZone at an absl::CivilSecond. When the civil time is skipped or repeated, returns times calculated using the pre-transition and post- transition UTC offsets, plus the transition time itself.

TimeInfo
At(CivilSecond ct) const;
» more...

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.

CivilInfo
At(Time t) const;
» more...

Return Value

  • The absolute-time information for ct in this time zone.
  • The civil-time information for t in this time zone.

Parameters

NameDescription
ctThe civil time to convert.
tThe absolute time to convert.