Home
last modified time | relevance | path

Searched refs:CivilDay (Results 1 – 6 of 6) sorted by relevance

/third_party/skia/third_party/externals/abseil-cpp/absl/time/
Dcivil_time_test.cc36 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 …]
Dcivil_time.h329 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);
Dcivil_time_benchmark.cc42 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()
Dcivil_time.cc88 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 <<()
Dtime.h1134 inline CivilDay ToCivilDay(Time t, TimeZone tz) { in ToCivilDay()
1135 return CivilDay(tz.At(t).cs); in ToCivilDay()
Dtime_test.cc1166 t = absl::FromCivil(absl::CivilDay(cs), utc); in TEST()