absl::TimeZone::TimeInfo

Information about the absolute times corresponding to a civil time. (Subseconds must be handled separately.)

Synopsis

Declared in <absl/time/time.h>

struct TimeInfo;

Description

It is possible for a caller to pass a civil-time value that does not represent an actual or unique instant in time (due to a shift in UTC offset in the TimeZone, which results in a discontinuity in the civil-time components). For example, a daylight-saving-time transition skips or repeats civil times---in the United States, March 13, 2011 02:15 never occurred, while November 6, 2011 01:15 occurred twice---so requests for such times are not well-defined. To account for these possibilities, absl::TimeZone::TimeInfo is richer than just a single absl::Time.

Enums

NameDescription
CivilKind Describes how a civil time maps onto the absolute time line.

Data Members

NameDescription
kind how the civil time maps onto the absolute time line
post time calculated using the post-transition offset
pre time calculated using the pre-transition offset
trans when the civil-time discontinuity occurred