Home
last modified time | relevance | path

Searched refs:day (Results 1 – 25 of 1166) sorted by relevance

12345678910>>...47

/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/
Dday.pass.cpp27 using day = std::chrono::day; in main() typedef
31 ASSERT_NOEXCEPT( std::declval<const year_month_day_last>().day()); in main()
32 ASSERT_SAME_TYPE(day, decltype(std::declval<const year_month_day_last>().day())); in main()
35 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 1}}}.day() == day{31}, ""); in main()
36 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 2}}}.day() == day{29}, ""); in main()
37 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 3}}}.day() == day{31}, ""); in main()
38 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 4}}}.day() == day{30}, ""); in main()
39 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 5}}}.day() == day{31}, ""); in main()
40 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 6}}}.day() == day{30}, ""); in main()
41 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 7}}}.day() == day{31}, ""); in main()
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.operators/
Dyear_month_day.pass.cpp50 using day = std::chrono::day; in main() typedef
59 ASSERT_NOEXCEPT ( Feb2018/day{2}); in main()
60 ASSERT_SAME_TYPE(year_month_day, decltype(Feb2018/day{2})); in main()
62 static_assert((Feb2018/day{2}).month() == February, ""); in main()
63 static_assert((Feb2018/day{2}).day() == day{2}, ""); in main()
71 day d(k); in main()
76 assert(ymd.day() == d); in main()
86 static_assert((Feb2018/2).day() == day{2}, ""); in main()
94 day d(k); in main()
99 assert(ymd.day() == d); in main()
[all …]
Dmonth_day.pass.cpp46 using day = std::chrono::day; in main() typedef
51 ASSERT_NOEXCEPT ( February/day{1}); in main()
52 ASSERT_SAME_TYPE(month_day, decltype(February/day{1})); in main()
53 ASSERT_NOEXCEPT ( day{1}/February); in main()
54 ASSERT_SAME_TYPE(month_day, decltype(day{1}/February)); in main()
60 day d{j}; in main()
64 assert(md1.day() == d); in main()
66 assert(md2.day() == d); in main()
80 day d(j); in main()
83 assert(md1.day() == d); in main()
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/
Dok.pass.cpp27 using day = std::chrono::day; in main() typedef
35 static_assert(!year_month_day{year{-32768}, month{}, day{}}.ok(), ""); // All three bad in main()
37 static_assert(!year_month_day{year{-32768}, January, day{1}}.ok(), ""); // Bad year in main()
38 static_assert(!year_month_day{year{2019}, month{}, day{1}}.ok(), ""); // Bad month in main()
39 static_assert(!year_month_day{year{2019}, January, day{} }.ok(), ""); // Bad day in main()
41 static_assert(!year_month_day{year{-32768}, month{}, day{1}}.ok(), ""); // Bad year & month in main()
42 static_assert(!year_month_day{year{2019}, month{}, day{} }.ok(), ""); // Bad month & day in main()
43 static_assert(!year_month_day{year{-32768}, January, day{} }.ok(), ""); // Bad year & day in main()
45 static_assert( year_month_day{year{2019}, January, day{1}}.ok(), ""); // All OK in main()
48 static_assert( year_month_day{year{2020}, month{ 1}, day{31}}.ok(), ""); in main()
[all …]
Dday.pass.cpp27 using day = std::chrono::day; in main() typedef
30 ASSERT_NOEXCEPT( std::declval<const year_month_day>().day()); in main()
31 ASSERT_SAME_TYPE(day, decltype(std::declval<const year_month_day>().day())); in main()
33 static_assert( year_month_day{}.day() == day{}, ""); in main()
37 year_month_day ymd(year{1234}, month{2}, day{i}); in main()
38 assert( static_cast<unsigned>(ymd.day()) == i); in main()
Dctor.local_days.pass.cpp36 using day = std::chrono::day; in main() typedef
50 static_assert( ymd.day() == day{1}, ""); in main()
60 static_assert( ymd.day() == day{2}, ""); in main()
73 static_assert( ymd.day() == day{2}, ""); in main()
83 assert( ymd.day() == day{29}); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.nonmembers/
Dcomparisons.pass.cpp35 using day = std::chrono::day; in main() typedef
47 year_month_day{year{1234}, January, day{1}}, in main()
48 year_month_day{year{1234}, January, day{1}}, in main()
53 year_month_day{year{1234}, January, day{1}}, in main()
54 year_month_day{year{1234}, January, day{2}}, in main()
59 year_month_day{year{1234}, January, day{1}}, in main()
60 year_month_day{year{1234}, February, day{1}}, in main()
65 year_month_day{year{1234}, January, day{1}}, in main()
66 year_month_day{year{1235}, January, day{1}}, in main()
72 year_month_day{year{1234}, January, day{2}}, in main()
[all …]
Dplus.pass.cpp57 using day = std::chrono::day; in main() typedef
71 static_assert(testConstexprMonths(year_month_day{year{1}, month{1}, day{1}}), ""); in main()
73 year_month_day ym{year{1234}, std::chrono::January, day{12}}; in main()
82 assert(ym1.day() == day{12}); in main()
83 assert(ym2.day() == day{12}); in main()
95 static_assert(testConstexprYears (year_month_day{year{1}, month{1}, day{1}}), ""); in main()
97 year_month_day ym{year{1234}, std::chrono::January, day{12}}; in main()
106 assert(ym1.day() == day{12}); in main()
107 assert(ym2.day() == day{12}); in main()
/external/pdfium/fxjs/
DJS_Define.cpp98 int day = Day(t); in DayWithinYear() local
99 return day - DayFromYear(year); in DayWithinYear()
103 int day = DayWithinYear(t); in MonthFromTime() local
105 if (0 <= day && day < 31) in MonthFromTime()
107 if (31 <= day && day < 59 + IsLeapYear(year)) in MonthFromTime()
109 if ((59 + IsLeapYear(year)) <= day && day < (90 + IsLeapYear(year))) in MonthFromTime()
111 if ((90 + IsLeapYear(year)) <= day && day < (120 + IsLeapYear(year))) in MonthFromTime()
113 if ((120 + IsLeapYear(year)) <= day && day < (151 + IsLeapYear(year))) in MonthFromTime()
115 if ((151 + IsLeapYear(year)) <= day && day < (181 + IsLeapYear(year))) in MonthFromTime()
117 if ((181 + IsLeapYear(year)) <= day && day < (212 + IsLeapYear(year))) in MonthFromTime()
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.members/
Dincrement.pass.cpp36 using day = std::chrono::day; in main() typedef
37 ASSERT_NOEXCEPT(++(std::declval<day&>()) ); in main()
38 ASSERT_NOEXCEPT( (std::declval<day&>())++); in main()
40 ASSERT_SAME_TYPE(day , decltype( std::declval<day&>()++)); in main()
41 ASSERT_SAME_TYPE(day&, decltype(++std::declval<day&>() )); in main()
43 static_assert(testConstexpr<day>(), ""); in main()
47 day day(i); in main() local
48 assert(static_cast<unsigned>(++day) == i + 1); in main()
49 assert(static_cast<unsigned>(day++) == i + 1); in main()
50 assert(static_cast<unsigned>(day) == i + 2); in main()
Ddecrement.pass.cpp36 using day = std::chrono::day; in main() typedef
37 ASSERT_NOEXCEPT(--(std::declval<day&>()) ); in main()
38 ASSERT_NOEXCEPT( (std::declval<day&>())--); in main()
40 ASSERT_SAME_TYPE(day , decltype( std::declval<day&>()--)); in main()
41 ASSERT_SAME_TYPE(day&, decltype(--std::declval<day&>() )); in main()
43 static_assert(testConstexpr<day>(), ""); in main()
47 day day(i); in main() local
48 assert(static_cast<unsigned>(--day) == i - 1); in main()
49 assert(static_cast<unsigned>(day--) == i - 1); in main()
50 assert(static_cast<unsigned>(day) == i - 2); in main()
Dplus_minus_equal.pass.cpp38 using day = std::chrono::day; in main() typedef
41 ASSERT_NOEXCEPT(std::declval<day&>() += std::declval<days>()); in main()
42 ASSERT_NOEXCEPT(std::declval<day&>() -= std::declval<days>()); in main()
44 ASSERT_SAME_TYPE(day&, decltype(std::declval<day&>() += std::declval<days>())); in main()
45 ASSERT_SAME_TYPE(day&, decltype(std::declval<day&>() -= std::declval<days>())); in main()
47 static_assert(testConstexpr<day, days>(), ""); in main()
51 day day(i); in main() local
52 assert(static_cast<unsigned>(day += days{22}) == i + 22); in main()
53 assert(static_cast<unsigned>(day) == i + 22); in main()
54 assert(static_cast<unsigned>(day -= days{12}) == i + 10); in main()
[all …]
Dctor.pass.cpp29 using day = std::chrono::day; in main() typedef
31 ASSERT_NOEXCEPT(day{}); in main()
32 ASSERT_NOEXCEPT(day(0U)); in main()
33 ASSERT_NOEXCEPT(static_cast<unsigned>(day(0U))); in main()
35 constexpr day d0{}; in main()
38 constexpr day d1{1}; in main()
43 day day(i); in main() local
44 assert(static_cast<unsigned>(day) == i); in main()
Dok.pass.cpp25 using day = std::chrono::day; in main() typedef
26 ASSERT_NOEXCEPT( std::declval<const day>().ok()); in main()
27 ASSERT_SAME_TYPE(bool, decltype(std::declval<const day>().ok())); in main()
29 static_assert(!day{0}.ok(), ""); in main()
30 static_assert( day{1}.ok(), ""); in main()
32 assert(!day{0}.ok()); in main()
34 assert(day{i}.ok()); in main()
36 assert(!day{i}.ok()); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.nonmembers/
Dminus.pass.cpp39 using day = std::chrono::day; in main() typedef
42 ASSERT_NOEXCEPT(std::declval<day>() - std::declval<days>()); in main()
43 ASSERT_NOEXCEPT(std::declval<day>() - std::declval<day>()); in main()
45 ASSERT_SAME_TYPE(day, decltype(std::declval<day>() - std::declval<days>())); in main()
46 ASSERT_SAME_TYPE(days, decltype(std::declval<day>() - std::declval<day>())); in main()
48 static_assert(testConstexpr<day, days>(), ""); in main()
50 day dy{12}; in main()
53 day d1 = dy - days{i}; in main()
54 days off = dy - day {i}; in main()
Dplus.pass.cpp39 using day = std::chrono::day; in main() typedef
42 ASSERT_NOEXCEPT(std::declval<day>() + std::declval<days>()); in main()
43 ASSERT_NOEXCEPT(std::declval<days>() + std::declval<day>()); in main()
45 ASSERT_SAME_TYPE(day, decltype(std::declval<day>() + std::declval<days>())); in main()
46 ASSERT_SAME_TYPE(day, decltype(std::declval<days>() + std::declval<day>())); in main()
48 static_assert(testConstexpr<day, days>(), ""); in main()
50 day dy{12}; in main()
53 day d1 = dy + days{i}; in main()
54 day d2 = days{i} + dy; in main()
Dcomparisons.pass.cpp29 using day = std::chrono::day; in main() typedef
31 AssertComparisons6AreNoexcept<day>(); in main()
32 AssertComparisons6ReturnBool<day>(); in main()
34 static_assert(testComparisons6Values<day>(0U, 0U), ""); in main()
35 static_assert(testComparisons6Values<day>(0U, 1U), ""); in main()
38 static_assert(testComparisons6Values<day>( 5U, 5U), ""); in main()
39 static_assert(testComparisons6Values<day>( 5U, 10U), ""); in main()
43 assert(testComparisons6Values<day>(i, j)); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.md/time.cal.md.members/
Dok.pass.cpp27 using day = std::chrono::day; in main() typedef
35 static_assert( month_day{std::chrono::May, day{2}}.ok(), ""); in main()
37 assert(!(month_day(std::chrono::April, day{0}).ok())); in main()
39 assert( (month_day{std::chrono::March, day{1}}.ok())); in main()
43 assert(!(month_day{month{i}, day{ 0}}.ok())); in main()
44 assert( (month_day{month{i}, day{ 1}}.ok())); in main()
45 assert( (month_day{month{i}, day{10}}.ok())); in main()
46 assert( (month_day{month{i}, day{29}}.ok())); in main()
47 assert( (month_day{month{i}, day{30}}.ok()) == (i != 2)); in main()
48 assert( (month_day{month{i}, day{31}}.ok()) == is31); in main()
[all …]
Dday.pass.cpp25 using day = std::chrono::day; in main() typedef
28 ASSERT_NOEXCEPT( std::declval<const month_day>().day()); in main()
29 ASSERT_SAME_TYPE(day, decltype(std::declval<const month_day>().day())); in main()
31 static_assert( month_day{}.day() == day{}, ""); in main()
35 month_day md(std::chrono::March, day{i}); in main()
36 assert( static_cast<unsigned>(md.day()) == i); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.md/time.cal.md.nonmembers/
Dcomparisons.pass.cpp32 using day = std::chrono::day; in main() typedef
40 month_day{std::chrono::January, day{1}}, in main()
41 month_day{std::chrono::January, day{1}}, in main()
45 month_day{std::chrono::January, day{1}}, in main()
46 month_day{std::chrono::January, day{2}}, in main()
50 month_day{std::chrono::January, day{1}}, in main()
51 month_day{std::chrono::February, day{1}}, in main()
58 month_day{month{i}, day{1}}, in main()
59 month_day{month{j}, day{1}}, in main()
66 month_day{month{2}, day{i}}, in main()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DEraRules.java177 public int getEraIndex(int year, int month, int day) { in getEraIndex() argument
178 if (month < 1 || month > 12 || day < 1 || day > 31) { in getEraIndex()
179 …hrow new IllegalArgumentException("Illegal date - year:" + year + "month:" + month + "day:" + day); in getEraIndex()
186 if (compareEncodedDateWithYMD(startDates[getCurrentEraIndex()], year, month, day) <= 0) { in getEraIndex()
195 if (compareEncodedDateWithYMD(startDates[i], year, month, day) <= 0) { in getEraIndex()
237 private static boolean isValidRuleStartDate(int year, int month, int day) { in isValidRuleStartDate() argument
239 && month >= 1 && month <= 12 && day >= 1 && day <= 31; in isValidRuleStartDate()
252 private static int encodeDate(int year, int month, int day) { in encodeDate() argument
253 return year << 16 | month << 8 | day; in encodeDate()
257 int year, month, day; in decodeDate() local
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DEraRules.java175 public int getEraIndex(int year, int month, int day) { in getEraIndex() argument
176 if (month < 1 || month > 12 || day < 1 || day > 31) { in getEraIndex()
177 …hrow new IllegalArgumentException("Illegal date - year:" + year + "month:" + month + "day:" + day); in getEraIndex()
184 if (compareEncodedDateWithYMD(startDates[getCurrentEraIndex()], year, month, day) <= 0) { in getEraIndex()
193 if (compareEncodedDateWithYMD(startDates[i], year, month, day) <= 0) { in getEraIndex()
235 private static boolean isValidRuleStartDate(int year, int month, int day) { in isValidRuleStartDate() argument
237 && month >= 1 && month <= 12 && day >= 1 && day <= 31; in isValidRuleStartDate()
250 private static int encodeDate(int year, int month, int day) { in encodeDate() argument
251 return year << 16 | month << 8 | day; in encodeDate()
255 int year, month, day; in decodeDate() local
[all …]
/external/u-boot/drivers/rtc/
Ddate.c37 int day; in rtc_calc_weekday() local
56 day = 1; in rtc_calc_weekday()
58 day = 0; in rtc_calc_weekday()
61 day += last_year * 365 + leaps_to_date + month_offset[tm->tm_mon - 1] + in rtc_calc_weekday()
63 tm->tm_wday = day % 7; in rtc_calc_weekday()
71 register long hms, day; in rtc_to_tm() local
73 day = tim / SECDAY; in rtc_to_tm()
82 for (i = STARTOFTIME; day >= days_in_year(i); i++) in rtc_to_tm()
83 day -= days_in_year(i); in rtc_to_tm()
89 for (i = 1; day >= days_in_month(i); i++) in rtc_to_tm()
[all …]
/external/swiftshader/third_party/LLVM/utils/
DimportNLT.pl25 ($day, $mon, $year, $prog, $gccas, $bc, $llccompile, $llcbetacompile, $jitcompile,
30 … ('$prog', STR_TO_DATE('$day $mon $year', '\%d \%M \%Y'), 'gccas', $gccas)") || die DBI->errstr;
35 … ('$prog', STR_TO_DATE('$day $mon $year', '\%d \%M \%Y'), 'bytecode', $bc)") || die DBI->errstr;
40 …('$prog', STR_TO_DATE('$day $mon $year', '\%d \%M \%Y'), 'llc-compile', $llccompile)") || die DBI-…
45 …('$prog', STR_TO_DATE('$day $mon $year', '\%d \%M \%Y'), 'llc-beta-compile', $llcbetacompile)") ||…
50 …('$prog', STR_TO_DATE('$day $mon $year', '\%d \%M \%Y'), 'jit-compile', $jitcompile)") || die DBI-…
55 …('$prog', STR_TO_DATE('$day $mon $year', '\%d \%M \%Y'), 'machine-code', $mc)") || die DBI->errstr;
60 … ('$prog', STR_TO_DATE('$day $mon $year', '\%d \%M \%Y'), 'gcc', $gcc)") || die DBI->errstr;
65 … ('$prog', STR_TO_DATE('$day $mon $year', '\%d \%M \%Y'), 'llc', $llc)") || die DBI->errstr;
70 …('$prog', STR_TO_DATE('$day $mon $year', '\%d \%M \%Y'), 'llc-beta', $llcbeta)") || die DBI->errst…
[all …]
/external/v8/src/builtins/
Dbuiltins-date.cc37 double MakeDate(double day, double time) { in MakeDate() argument
38 if (std::isfinite(day) && std::isfinite(time)) { in MakeDate()
39 return time + day * kMsPerDay; in MakeDate()
121 double const day = MakeDay(tmp->get(0)->Number(), tmp->get(1)->Number(), in ParseDateTimeString() local
125 double date = MakeDate(day, time); in ParseDateTimeString()
147 int year, month, day, weekday, hour, min, sec, ms; in ToDateString() local
148 date_cache->BreakDownTime(local_time_ms, &year, &month, &day, &weekday, &hour, in ToDateString()
157 kShortMonths[month], day, year); in ToDateString()
168 kShortWeekDays[weekday], kShortMonths[month], day, year, hour, in ToDateString()
265 double const day = MakeDay(year, month, date); in BUILTIN() local
[all …]

12345678910>>...47