• Home
  • Raw
  • Download

Lines Matching refs:cctz

47 namespace cctz = absl::time_internal::cctz;
54 inline cctz::time_point<cctz::seconds> unix_epoch() { in unix_epoch()
55 return std::chrono::time_point_cast<cctz::seconds>( in unix_epoch()
140 Time MakeTimeWithOverflow(const cctz::time_point<cctz::seconds>& sec, in MakeTimeWithOverflow()
141 const cctz::civil_second& cs, in MakeTimeWithOverflow()
142 const cctz::time_zone& tz, in MakeTimeWithOverflow()
144 const auto max = cctz::time_point<cctz::seconds>::max(); in MakeTimeWithOverflow()
145 const auto min = cctz::time_point<cctz::seconds>::min(); in MakeTimeWithOverflow()
165 inline int MapWeekday(const cctz::weekday& wd) { in MapWeekday()
167 case cctz::weekday::monday: in MapWeekday()
169 case cctz::weekday::tuesday: in MapWeekday()
171 case cctz::weekday::wednesday: in MapWeekday()
173 case cctz::weekday::thursday: in MapWeekday()
175 case cctz::weekday::friday: in MapWeekday()
177 case cctz::weekday::saturday: in MapWeekday()
179 case cctz::weekday::sunday: in MapWeekday()
185 bool FindTransition(const cctz::time_zone& tz, in FindTransition()
186 bool (cctz::time_zone::*find_transition)( in FindTransition()
187 const cctz::time_point<cctz::seconds>& tp, in FindTransition()
188 cctz::time_zone::civil_transition* trans) const, in FindTransition()
191 const auto tp = unix_epoch() + cctz::seconds(ToUnixSeconds(t)); in FindTransition()
192 cctz::time_zone::civil_transition tr; in FindTransition()
209 const auto tp = unix_epoch() + cctz::seconds(time_internal::GetRepHi(rep_)); in In()
210 const auto al = cctz::time_zone(tz).lookup(tp); in In()
212 const auto cd = cctz::civil_day(cs); in In()
222 bd.weekday = MapWeekday(cctz::get_weekday(cd)); in In()
223 bd.yearday = cctz::get_yearday(cd); in In()
355 const auto tp = unix_epoch() + cctz::seconds(time_internal::GetRepHi(ud)); in At()
368 const cctz::civil_second cs(ct); in At()
373 case cctz::time_zone::civil_lookup::UNIQUE: in At()
376 case cctz::time_zone::civil_lookup::SKIPPED: in At()
379 case cctz::time_zone::civil_lookup::REPEATED: in At()
390 return FindTransition(cz_, &cctz::time_zone::next_transition, t, trans); in NextTransition()
394 return FindTransition(cz_, &cctz::time_zone::prev_transition, t, trans); in PrevTransition()