Home
last modified time | relevance | path

Searched refs:CivilSecond (Results 1 – 10 of 10) sorted by relevance

/third_party/skia/third_party/externals/abseil-cpp/absl/time/
Dcivil_time_test.cc27 absl::CivilSecond ss; in TEST()
56 absl::FormatCivilTime(absl::CivilSecond(2015, 1, 2, 3, 4, 5))); in TEST()
58 absl::FormatCivilTime(absl::CivilSecond(2015, 1, 2, 3, 4))); in TEST()
60 absl::FormatCivilTime(absl::CivilSecond(2015, 1, 2, 3))); in TEST()
62 absl::FormatCivilTime(absl::CivilSecond(2015, 1, 2))); in TEST()
64 absl::FormatCivilTime(absl::CivilSecond(2015, 1))); in TEST()
66 absl::FormatCivilTime(absl::CivilSecond(2015))); in TEST()
137 absl::FormatCivilTime(absl::CivilSecond( in TEST()
140 absl::FormatCivilTime(absl::CivilSecond( in TEST()
143 absl::FormatCivilTime(absl::CivilSecond( in TEST()
[all …]
Dcivil_time.h323 using CivilSecond = variable
381 inline Weekday GetWeekday(CivilSecond cs) { in GetWeekday()
433 inline int GetYearDay(CivilSecond cs) { in GetYearDay()
456 std::string FormatCivilTime(CivilSecond c);
487 bool ParseCivilTime(absl::string_view s, CivilSecond* c);
507 bool ParseLenientCivilTime(absl::string_view s, CivilSecond* c);
531 std::ostream& operator<<(std::ostream& os, CivilSecond s);
Dtime_test.cc112 EXPECT_EQ(absl::CivilSecond(1970, 1, 1, 0, 0, 0), ci.cs); in TEST()
632 absl::CivilSecond nov01(2013, 11, 1, 8, 30, 0); in TEST()
644 absl::CivilSecond mar13(2011, 3, 13, 2, 15, 0); in TEST()
658 absl::CivilSecond nov06(2011, 11, 6, 1, 15, 0); in TEST()
670 absl::CivilSecond minus1(1969, 12, 31, 18, 59, 59); in TEST()
691 absl::CivilSecond(292091940881, kMax, kMax, kMax, kMax, kMax), utc); in TEST()
695 absl::CivilSecond(292091940882, kMax, kMax, kMax, kMax, kMax), utc); in TEST()
700 absl::CivilSecond(-292091936940, kMin, kMin, kMin, kMin, kMin), utc); in TEST()
704 absl::CivilSecond(-292091936941, kMin, kMin, kMin, kMin, kMin), utc); in TEST()
708 t = absl::FromCivil(absl::CivilSecond(1900, 2, 28, 23, 59, 59), utc); in TEST()
[all …]
Dcivil_time.cc37 std::string FormatYearAnd(string_view fmt, CivilSecond cs) { in FormatYearAnd()
38 const CivilSecond ncs(NormalizeYear(cs.year()), cs.month(), cs.day(), in FormatYearAnd()
89 if (ParseAs<CivilSecond>(s, c)) return true; in ParseLenient()
98 std::string FormatCivilTime(CivilSecond c) { in FormatCivilTime()
111 bool ParseCivilTime(string_view s, CivilSecond* c) { in ParseCivilTime()
130 bool ParseLenientCivilTime(string_view s, CivilSecond* c) { in ParseLenientCivilTime()
166 std::ostream& operator<<(std::ostream& os, CivilSecond s) { in operator <<()
Dcivil_time_benchmark.cc61 const absl::CivilSecond c(2014, 1, 2, 3, 4, 5); in BM_Format()
71 absl::CivilSecond c; in BM_Parse()
80 const absl::CivilSecond c(2014, 1, 2, 3, 4, 5); in BM_RoundTripFormatParse()
81 absl::CivilSecond out; in BM_RoundTripFormatParse()
118 BM_CivilTimeAbslHash<absl::CivilSecond>(state); in BM_CivilSecondAbslHash()
Dtime_benchmark.cc188 absl::FromCivil(absl::CivilSecond(2014, 12, 18, 20, 16, 18), tz); in BM_Time_FromCivil_Absl()
190 absl::FromCivil(absl::CivilSecond(2013, 11, 15, 18, 30, 27), tz); in BM_Time_FromCivil_Absl()
227 absl::FromCivil(absl::CivilSecond(2014, 12, 18, 20, 16, 18), tz); in BM_Time_FromCivilUTC_Absl()
238 absl::FromCivil(absl::CivilSecond(2014, 12, 0, 20, 16, 18), tz); in BM_Time_FromCivilDay0_Absl()
240 absl::FromCivil(absl::CivilSecond(2013, 11, 0, 18, 30, 27), tz); in BM_Time_FromCivilDay0_Absl()
Dtime.cc105 ci.cs = CivilSecond::max(); in InfiniteFutureCivilInfo()
115 ci.cs = CivilSecond::min(); in InfinitePastCivilInfo()
195 trans->from = CivilSecond(tr.from); in FindTransition()
196 trans->to = CivilSecond(tr.to); in FindTransition()
360 ci.cs = CivilSecond(al.cs); in At()
368 absl::TimeZone::TimeInfo TimeZone::At(CivilSecond ct) const { in At()
408 const CivilSecond cs(year, mon, day, hour, min, sec); in ConvertDateTime()
444 const auto ti = tz.At(CivilSecond(tm_year + 1900, tm_mon + 1, tm.tm_mday, in FromTM()
Dformat_benchmark.cc41 absl::FromCivil(absl::CivilSecond(1977, 6, 28, 9, 8, 7), lax) + in BM_Format_FormatTime()
54 absl::Time t = absl::FromCivil(absl::CivilSecond(1977, 6, 28, 9, 8, 7), lax) + in BM_Format_ParseTime()
Dformat_test.cc121 absl::Time t = absl::FromCivil(absl::CivilSecond(77, 6, 28, 9, 8, 7), tz); in TEST()
158 EXPECT_EQ(absl::CivilSecond(2013, 6, 28, 19, 8, 9), ci.cs); in TEST()
181 EXPECT_EQ(absl::CivilSecond(2013, 6, 28, 19, 8, 9), ci.cs); in TEST()
189 EXPECT_EQ(absl::CivilSecond(2013, 6, 28, 19, 8, 9), ci.cs); in TEST()
371 absl::FromCivil(absl::CivilSecond(1977, 6, 28, 9, 8, 7), lax); in TEST()
Dtime.h930 CivilSecond cs;
1013 TimeInfo At(CivilSecond ct) const;
1047 CivilSecond from; // the civil time we jump from
1048 CivilSecond to; // the civil time we jump to
1125 inline CivilSecond ToCivilSecond(Time t, TimeZone tz) { in ToCivilSecond()
1156 inline Time FromCivil(CivilSecond ct, TimeZone tz) { in FromCivil()