#include <time_zone_info.h>
Classes | |
struct | Header |
Public Member Functions | |
time_zone::absolute_lookup | BreakTime (const time_point< seconds > &tp) const override |
std::string | Description () const override |
bool | Load (const std::string &name) |
time_zone::civil_lookup | MakeTime (const civil_second &cs) const override |
bool | NextTransition (const time_point< seconds > &tp, time_zone::civil_transition *trans) const override |
TimeZoneInfo & | operator= (const TimeZoneInfo &) |
bool | PrevTransition (const time_point< seconds > &tp, time_zone::civil_transition *trans) const override |
TimeZoneInfo () | |
TimeZoneInfo (const TimeZoneInfo &) | |
std::string | Version () const override |
Private Member Functions | |
void | CheckTransition (const std::string &name, const TransitionType &tt, std::int_fast32_t offset, bool is_dst, const std::string &abbr) const |
bool | EquivTransitions (std::uint_fast8_t tt1_index, std::uint_fast8_t tt2_index) const |
void | ExtendTransitions (const std::string &name, const Header &hdr) |
bool | Load (const std::string &name, ZoneInfoSource *zip) |
time_zone::absolute_lookup | LocalTime (std::int_fast64_t unix_time, const TransitionType &tt) const |
time_zone::absolute_lookup | LocalTime (std::int_fast64_t unix_time, const Transition &tr) const |
bool | ResetToBuiltinUTC (const seconds &offset) |
time_zone::civil_lookup | TimeLocal (const civil_second &cs, year_t c4_shift) const |
Private Attributes | |
std::string | abbreviations_ |
std::uint_fast8_t | default_transition_type_ |
bool | extended_ |
std::string | future_spec_ |
year_t | last_year_ |
std::atomic< std::size_t > | local_time_hint_ = {} |
std::atomic< std::size_t > | time_local_hint_ = {} |
std::vector< TransitionType > | transition_types_ |
std::vector< Transition > | transitions_ |
std::string | version_ |
Definition at line 63 of file time_zone_info.h.
time_zone::absolute_lookup absl::time_internal::cctz::TimeZoneInfo::BreakTime | ( | const time_point< seconds > & | tp | ) | const [override, virtual] |
Implements absl::time_internal::cctz::TimeZoneIf.
Definition at line 787 of file time_zone_info.cc.
void absl::time_internal::cctz::TimeZoneInfo::CheckTransition | ( | const std::string & | name, |
const TransitionType & | tt, | ||
std::int_fast32_t | offset, | ||
bool | is_dst, | ||
const std::string & | abbr | ||
) | const [private] |
Definition at line 261 of file time_zone_info.cc.
std::string absl::time_internal::cctz::TimeZoneInfo::Description | ( | ) | const [override, virtual] |
Implements absl::time_internal::cctz::TimeZoneIf.
Definition at line 905 of file time_zone_info.cc.
bool absl::time_internal::cctz::TimeZoneInfo::EquivTransitions | ( | std::uint_fast8_t | tt1_index, |
std::uint_fast8_t | tt2_index | ||
) | const [private] |
Definition at line 278 of file time_zone_info.cc.
void absl::time_internal::cctz::TimeZoneInfo::ExtendTransitions | ( | const std::string & | name, |
const Header & | hdr | ||
) | [private] |
Definition at line 291 of file time_zone_info.cc.
bool absl::time_internal::cctz::TimeZoneInfo::Load | ( | const std::string & | name | ) |
Reimplemented from absl::time_internal::cctz::TimeZoneIf.
Definition at line 726 of file time_zone_info.cc.
bool absl::time_internal::cctz::TimeZoneInfo::Load | ( | const std::string & | name, |
ZoneInfoSource * | zip | ||
) | [private] |
Definition at line 393 of file time_zone_info.cc.
time_zone::absolute_lookup absl::time_internal::cctz::TimeZoneInfo::LocalTime | ( | std::int_fast64_t | unix_time, |
const TransitionType & | tt | ||
) | const [private] |
Definition at line 747 of file time_zone_info.cc.
time_zone::absolute_lookup absl::time_internal::cctz::TimeZoneInfo::LocalTime | ( | std::int_fast64_t | unix_time, |
const Transition & | tr | ||
) | const [private] |
Definition at line 757 of file time_zone_info.cc.
time_zone::civil_lookup absl::time_internal::cctz::TimeZoneInfo::MakeTime | ( | const civil_second & | cs | ) | const [override, virtual] |
Implements absl::time_internal::cctz::TimeZoneIf.
Definition at line 830 of file time_zone_info.cc.
bool absl::time_internal::cctz::TimeZoneInfo::NextTransition | ( | const time_point< seconds > & | tp, |
time_zone::civil_transition * | trans | ||
) | const [override, virtual] |
Implements absl::time_internal::cctz::TimeZoneIf.
Definition at line 913 of file time_zone_info.cc.
TimeZoneInfo& absl::time_internal::cctz::TimeZoneInfo::operator= | ( | const TimeZoneInfo & | ) |
bool absl::time_internal::cctz::TimeZoneInfo::PrevTransition | ( | const time_point< seconds > & | tp, |
time_zone::civil_transition * | trans | ||
) | const [override, virtual] |
Implements absl::time_internal::cctz::TimeZoneIf.
Definition at line 939 of file time_zone_info.cc.
bool absl::time_internal::cctz::TimeZoneInfo::ResetToBuiltinUTC | ( | const seconds & | offset | ) | [private] |
Definition at line 182 of file time_zone_info.cc.
time_zone::civil_lookup absl::time_internal::cctz::TimeZoneInfo::TimeLocal | ( | const civil_second & | cs, |
year_t | c4_shift | ||
) | const [private] |
Definition at line 767 of file time_zone_info.cc.
std::string absl::time_internal::cctz::TimeZoneInfo::Version | ( | ) | const [override, virtual] |
Implements absl::time_internal::cctz::TimeZoneIf.
Definition at line 901 of file time_zone_info.cc.
std::string absl::time_internal::cctz::TimeZoneInfo::abbreviations_ [private] |
Definition at line 118 of file time_zone_info.h.
std::uint_fast8_t absl::time_internal::cctz::TimeZoneInfo::default_transition_type_ [private] |
Definition at line 117 of file time_zone_info.h.
Definition at line 122 of file time_zone_info.h.
std::string absl::time_internal::cctz::TimeZoneInfo::future_spec_ [private] |
Definition at line 121 of file time_zone_info.h.
year_t absl::time_internal::cctz::TimeZoneInfo::last_year_ [private] |
Definition at line 123 of file time_zone_info.h.
std::atomic<std::size_t> absl::time_internal::cctz::TimeZoneInfo::local_time_hint_ = {} [mutable, private] |
Definition at line 128 of file time_zone_info.h.
std::atomic<std::size_t> absl::time_internal::cctz::TimeZoneInfo::time_local_hint_ = {} [mutable, private] |
Definition at line 129 of file time_zone_info.h.
std::vector<TransitionType> absl::time_internal::cctz::TimeZoneInfo::transition_types_ [private] |
Definition at line 116 of file time_zone_info.h.
std::vector<Transition> absl::time_internal::cctz::TimeZoneInfo::transitions_ [private] |
Definition at line 115 of file time_zone_info.h.
std::string absl::time_internal::cctz::TimeZoneInfo::version_ [private] |
Definition at line 120 of file time_zone_info.h.