Searched refs:CivilDay (Results 1 – 6 of 6) sorted by relevance
/third_party/skia/third_party/externals/abseil-cpp/absl/time/ |
D | civil_time_test.cc | 36 absl::CivilDay d; in TEST() 48 absl::CivilDay day; in TEST() 51 EXPECT_EQ(absl::CivilDay{}, s.day); in TEST() 95 absl::FormatCivilTime(absl::CivilDay(2015, 1, 2, 3, 4, 5))); in TEST() 97 absl::FormatCivilTime(absl::CivilDay(2015, 1, 2, 3, 4))); in TEST() 99 absl::FormatCivilTime(absl::CivilDay(2015, 1, 2, 3))); in TEST() 101 absl::FormatCivilTime(absl::CivilDay(2015, 1, 2))); in TEST() 103 absl::FormatCivilTime(absl::CivilDay(2015, 1))); in TEST() 105 absl::FormatCivilTime(absl::CivilDay(2015))); in TEST() 177 EXPECT_EQ(absl::CivilDay(kYearMax, 12, 31), in TEST() [all …]
|
D | civil_time.h | 329 using CivilDay = variable 415 inline CivilDay NextWeekday(CivilDay cd, Weekday wd) { in NextWeekday() 416 return CivilDay(time_internal::cctz::next_weekday(cd, wd)); in NextWeekday() 418 inline CivilDay PrevWeekday(CivilDay cd, Weekday wd) { in PrevWeekday() 419 return CivilDay(time_internal::cctz::prev_weekday(cd, wd)); in PrevWeekday() 459 std::string FormatCivilTime(CivilDay c); 490 bool ParseCivilTime(absl::string_view s, CivilDay* c); 510 bool ParseLenientCivilTime(absl::string_view s, CivilDay* c); 528 std::ostream& operator<<(std::ostream& os, CivilDay d);
|
D | civil_time_benchmark.cc | 42 const absl::CivilDay c(2014, 8, 22); in BM_Difference_Days() 43 const absl::CivilDay epoch(1970, 1, 1); in BM_Difference_Days() 52 const absl::CivilDay kStart(2014, 8, 22); in BM_Step_Days() 53 absl::CivilDay c = kStart; in BM_Step_Days() 109 BM_CivilTimeAbslHash<absl::CivilDay>(state); in BM_CivilDayAbslHash()
|
D | civil_time.cc | 88 if (ParseAs<CivilDay>(s, c)) return true; in ParseLenient() 107 std::string FormatCivilTime(CivilDay c) { return FormatYearAnd("-%m-%d", c); } in FormatCivilTime() 120 bool ParseCivilTime(string_view s, CivilDay* c) { in ParseCivilTime() 139 bool ParseLenientCivilTime(string_view s, CivilDay* c) { in ParseLenientCivilTime() 157 std::ostream& operator<<(std::ostream& os, CivilDay d) { in operator <<()
|
D | time.h | 1134 inline CivilDay ToCivilDay(Time t, TimeZone tz) { in ToCivilDay() 1135 return CivilDay(tz.At(t).cs); in ToCivilDay()
|
D | time_test.cc | 1166 t = absl::FromCivil(absl::CivilDay(cs), utc); in TEST()
|