/third_party/boost/boost/date_time/ |
D | time_system_split.hpp | 84 time_rep_type get_time_rep(const date_type& day, in get_time_rep() argument 88 if(day.is_special() || tod.is_special()) { in get_time_rep() 89 if(day.is_not_a_date() || tod.is_not_a_date_time()) { in get_time_rep() 93 else if(day.is_pos_infinity()) { in get_time_rep() 99 return time_rep_type(day, time_duration_type(pos_infin)); in get_time_rep() 102 else if(day.is_neg_infinity()) { in get_time_rep() 108 return time_rep_type(day, time_duration_type(neg_infin)); in get_time_rep() 112 if(day.is_neg_infinity()) { in get_time_rep() 121 if(day.is_pos_infinity()) { in get_time_rep() 130 return time_rep_type(day, tod); in get_time_rep() [all …]
|
D | gregorian_calendar.ipp | 12 //! Return the day of the week (0==Sunday, 1==Monday, etc) 13 /*! Converts a year-month-day into a day of the week number 23 …unsigned short d = static_cast<unsigned short>((ymd.day + y + (y/4) - (y/100) + (y/400) + (31*m)/1… 24 //std::cout << year << "-" << month << "-" << day << " is day: " << d << "\n"; 41 unsigned long day = (julianbegin + 3) % 7; 42 unsigned long week = (juliantoday + day - julianbegin + 4)/7; 49 if((day==6) ||(day == 5 && is_leap_year(ymd.year))) { 59 day = (julianbegin + 3) % 7; 60 week = (juliantoday + day - julianbegin + 4)/7; 64 …return static_cast<int>(week); //not reachable -- well except if day == 5 and is_leap_year != true [all …]
|
/third_party/glib/tests/ |
D | testgdate.c | 41 d->day, in g_date_debug_print() 55 GDateDay day; in main() local 200 day = 1; in main() 204 while (day <= dim) in main() 208 TEST("DMY triplet is valid", g_date_valid_dmy(day,m,y)); in main() 212 d = &days[day-1]; in main() 216 g_date_set_dmy(d,day,m,y); in main() 220 if (m == G_DATE_JANUARY && day == 1) in main() 230 TEST("Day of month accessor works", g_date_get_day(d) == day); in main() 244 if (m == G_DATE_DECEMBER && day == 31) in main() [all …]
|
/third_party/tzdata/ |
D | leapseconds.awk | 192 quadcentury, century, quadyear, year, month, day) 199 day = epoch_days + int(sstamp / (24 * 60 * 60)) 213 quadcentury = int(day / ss_quadcentury_days) 214 day -= quadcentury * ss_quadcentury_days 215 ss_wday = (day + 3) % 7 216 century = int(day / ss_century_days) 218 day -= century * ss_century_days 219 quadyear = int(day / ss_quadyear_days) 220 day -= quadyear * ss_quadyear_days 221 year = int(day / ss_year_days) [all …]
|
/third_party/protobuf/src/google/protobuf/stubs/ |
D | time_test.cc | 43 int64 CreateTimestamp(int year, int month, int day) { in CreateTimestamp() argument 47 time.day = day; in CreateTimestamp() 55 GOOGLE_CHECK(time.day == day); in CreateTimestamp() 64 EXPECT_EQ(1, time.day); in TEST() 75 EXPECT_EQ(31, time.day); in TEST() 85 start.day = 1; in TEST() 91 end.day = 31; in TEST() 162 time.day = 29; in TEST() 167 time.day = 29; in TEST() 169 time.day = 30; in TEST() [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | EraRules.java | 176 public int getEraIndex(int year, int month, int day) { in getEraIndex() argument 177 if (month < 1 || month > 12 || day < 1 || day > 31) { in getEraIndex() 178 …hrow new IllegalArgumentException("Illegal date - year:" + year + "month:" + month + "day:" + day); in getEraIndex() 185 if (compareEncodedDateWithYMD(startDates[getCurrentEraIndex()], year, month, day) <= 0) { in getEraIndex() 194 if (compareEncodedDateWithYMD(startDates[i], year, month, day) <= 0) { in getEraIndex() 241 private static boolean isValidRuleStartDate(int year, int month, int day) { in isValidRuleStartDate() argument 243 && month >= 1 && month <= 12 && day >= 1 && day <= 31; in isValidRuleStartDate() 256 private static int encodeDate(int year, int month, int day) { in encodeDate() argument 257 return year << 16 | month << 8 | day; in encodeDate() 261 int year, month, day; in decodeDate() local [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
D | EraRules.java | 178 public int getEraIndex(int year, int month, int day) { in getEraIndex() argument 179 if (month < 1 || month > 12 || day < 1 || day > 31) { in getEraIndex() 180 …hrow new IllegalArgumentException("Illegal date - year:" + year + "month:" + month + "day:" + day); in getEraIndex() 187 if (compareEncodedDateWithYMD(startDates[getCurrentEraIndex()], year, month, day) <= 0) { in getEraIndex() 196 if (compareEncodedDateWithYMD(startDates[i], year, month, day) <= 0) { in getEraIndex() 243 private static boolean isValidRuleStartDate(int year, int month, int day) { in isValidRuleStartDate() argument 245 && month >= 1 && month <= 12 && day >= 1 && day <= 31; in isValidRuleStartDate() 258 private static int encodeDate(int year, int month, int day) { in encodeDate() argument 259 return year << 16 | month << 8 | day; in encodeDate() 263 int year, month, day; in decodeDate() local [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/time/internal/cctz/src/ |
D | civil_time_test.cc | 53 static_assert(cd.day() == 28, "Normal.day"); in TEST() 66 static_assert(cd.day() == 1, "Conversion.day"); in TEST() 81 static_assert(cs.day() == 28, "Normalized.day"); in TEST() 91 static_assert(cs.day() == 28, "SecondOverflow.day"); in TEST() 101 static_assert(cs.day() == 28, "SecondUnderflow.day"); in TEST() 111 static_assert(cs.day() == 28, "MinuteOverflow.day"); in TEST() 121 static_assert(cs.day() == 28, "MinuteUnderflow.day"); in TEST() 131 static_assert(cs.day() == 30, "HourOverflow.day"); in TEST() 141 static_assert(cs.day() == 25, "HourUnderflow.day"); in TEST() 151 static_assert(cs.day() == 28, "MonthOverflow.day"); in TEST() [all …]
|
/third_party/abseil-cpp/absl/time/internal/cctz/src/ |
D | civil_time_test.cc | 53 static_assert(cd.day() == 28, "Normal.day"); in TEST() 66 static_assert(cd.day() == 1, "Conversion.day"); in TEST() 81 static_assert(cs.day() == 28, "Normalized.day"); in TEST() 91 static_assert(cs.day() == 28, "SecondOverflow.day"); in TEST() 101 static_assert(cs.day() == 28, "SecondUnderflow.day"); in TEST() 111 static_assert(cs.day() == 28, "MinuteOverflow.day"); in TEST() 121 static_assert(cs.day() == 28, "MinuteUnderflow.day"); in TEST() 131 static_assert(cs.day() == 30, "HourOverflow.day"); in TEST() 141 static_assert(cs.day() == 25, "HourUnderflow.day"); in TEST() 151 static_assert(cs.day() == 28, "MonthOverflow.day"); in TEST() [all …]
|
/third_party/boost/libs/locale/test/ |
D | test_date_time.cpp | 77 TEST(cal.minimum(day())==1); in main() 78 TEST(cal.greatest_minimum(day())==1); in main() 79 TEST(cal.least_maximum(day())==28); in main() 80 TEST(cal.maximum(day())==31); in main() 92 time_point=year(1970) + february() + day(5); in main() 114 TEST(time_point.minimum(day())==1); in main() 115 TEST(time_point.maximum(day())==28); in main() 142 TEST( (time_point + month()- time_point) / day() == 28); in main() 143 TEST( (time_point + 2* month()- (time_point+month())) / day() == 31); in main() 144 TEST( day(time_point + 2* month()- (time_point+month())) == 31); in main() [all …]
|
/third_party/gstreamer/gstreamer/gst/ |
D | gstdatetime.c | 412 gst_date_time_new_ymd (gint year, gint month, gint day) in gst_date_time_new_ymd() argument 414 return gst_date_time_new (0.0, year, month, day, -1, -1, -1); in gst_date_time_new_ymd() 522 gst_date_time_check_fields (gint * year, gint * month, gint * day, in gst_date_time_check_fields() argument 526 *month = *day = 1; in gst_date_time_check_fields() 529 } else if (*day == -1) { in gst_date_time_check_fields() 530 *day = 1; in gst_date_time_check_fields() 572 gst_date_time_new_local_time (gint year, gint month, gint day, gint hour, in gst_date_time_new_local_time() argument 585 if ((day <= 0 || day > 31) && day != -1) in gst_date_time_new_local_time() 597 fields = gst_date_time_check_fields (&year, &month, &day, in gst_date_time_new_local_time() 600 dt = g_date_time_new_local (year, month, day, hour, minute, seconds); in gst_date_time_new_local_time() [all …]
|
/third_party/libsoup/libsoup/ |
D | soup-date.c | 70 int day; in rata_die_day() local 72 day = (date->year - 1) * 365 + ((date->year - 1) / 4) - in rata_die_day() 74 day += nonleap_days_before[date->month] + date->day; in rata_die_day() 76 day++; in rata_die_day() 77 return day; in rata_die_day() 114 date->day += date->hour / 24; in G_DEFINE_BOXED_TYPE() 130 if (date->day < 0) { in G_DEFINE_BOXED_TYPE() 131 while (date->day < 0) { in G_DEFINE_BOXED_TYPE() 137 date->day += days_in_month (date->month, date->year); in G_DEFINE_BOXED_TYPE() 140 while (date->day > days_in_month (date->month, date->year)) { in G_DEFINE_BOXED_TYPE() [all …]
|
/third_party/mesa3d/bin/ |
D | gen_calendar_entries.py | 88 day = quarter.isoweekday() 89 if day > 3: 93 return quarter.replace(day=quarter.day - day + 3 + 14) 94 elif day < 3: 95 quarter = quarter.replace(day=quarter.day + 3 - day) 96 return quarter.replace(day=quarter.day + 14) 129 day = date.isoweekday() 130 if day < 3: 131 delta = 3 - day 132 elif day > 3: [all …]
|
/third_party/node/deps/npm/node_modules/tiny-relative-date/src/ |
D | factory.js | 13 const day = hour * 24 14 const week = day * 7 15 const month = day * 30 16 const year = day * 365 20 if (delta > day && delta < week) { 61 case !(delta < day): 64 case !(delta < day * 2): 68 return translate('days', Math.floor(delta / day))
|
/third_party/node/deps/npm/node_modules/tiny-relative-date/lib/ |
D | factory.js | 23 var day = hour * 24; 24 var week = day * 7; 25 var month = day * 30; 26 var year = day * 365; 30 if (delta > day && delta < week) { 71 case !(delta < day): 74 case !(delta < day * 2): 78 return translate('days', Math.floor(delta / day));
|
/third_party/glib/glib/ |
D | gdate.c | 289 g_date_new_dmy (GDateDay day, in g_date_new_dmy() argument 294 g_return_val_if_fail (g_date_valid_dmy (day, m, y), NULL); in g_date_new_dmy() 302 d->day = day; in g_date_new_dmy() 528 g_return_if_fail (g_date_valid_dmy (d->day, d->month, d->year)); in g_date_update_julian() 546 d->julian_days += days_in_year[idx][d->month] + d->day; in g_date_update_julian() 559 GDateDay day; in g_date_update_dmy() local 584 day = E - (153*M + 2)/5; in g_date_update_dmy() 588 if (!g_date_valid_dmy (day, m, y)) in g_date_update_dmy() 590 d->julian_days, day, m, y); in g_date_update_dmy() 594 d->day = day; in g_date_update_dmy() [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | HebrewCalendar.java | 610 long day = cache.get(year); in startOfYear() local 612 if (day == CalendarCache.EMPTY) { in startOfYear() 617 day = months * 29 + (frac / DAY_PARTS); // Whole # part of calculation in startOfYear() 620 int wd = (int)(day % 7); // Day of week (0 == Monday) in startOfYear() 624 day += 1; in startOfYear() 625 wd = (int)(day % 7); in startOfYear() 631 day += 2; in startOfYear() 637 day += 1; in startOfYear() 639 cache.put(year, day); in startOfYear() 641 return day; in startOfYear() [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/ |
D | HebrewCalendar.java | 584 long day = cache.get(year); in startOfYear() local 586 if (day == CalendarCache.EMPTY) { in startOfYear() 590 day = months * 29 + (frac / DAY_PARTS); // Whole # part of calculation in startOfYear() 593 int wd = (int)(day % 7); // Day of week (0 == Monday) in startOfYear() 597 day += 1; in startOfYear() 598 wd = (int)(day % 7); in startOfYear() 604 day += 2; in startOfYear() 610 day += 1; in startOfYear() 612 cache.put(year, day); in startOfYear() 614 return day; in startOfYear() [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/time/ |
D | civil_time_test.cc | 48 absl::CivilDay day; in TEST() member 51 EXPECT_EQ(absl::CivilDay{}, s.day); in TEST() 205 absl::CivilDay day = month; in TEST() local 206 absl::CivilHour hour = day; in TEST() 214 second = day; in TEST() 215 EXPECT_EQ(second, day); in TEST() 225 minute = day; in TEST() 226 EXPECT_EQ(minute, day); in TEST() 234 hour = day; in TEST() 235 EXPECT_EQ(hour, day); in TEST() [all …]
|
/third_party/abseil-cpp/absl/time/ |
D | civil_time_test.cc | 48 absl::CivilDay day; in TEST() member 51 EXPECT_EQ(absl::CivilDay{}, s.day); in TEST() 205 absl::CivilDay day = month; in TEST() local 206 absl::CivilHour hour = day; in TEST() 214 second = day; in TEST() 215 EXPECT_EQ(second, day); in TEST() 225 minute = day; in TEST() 226 EXPECT_EQ(minute, day); in TEST() 234 hour = day; in TEST() 235 EXPECT_EQ(hour, day); in TEST() [all …]
|
/third_party/jerryscript/tests/jerry/ |
D | date-setters.js | 19 var day = 24 * hour; /* 86400000 */ variable 25 assert (d.setTime(day) == day); 126 assert (d.setDate(0) == -day); 134 assert (d.setUTCDate(0) == -day); 145 assert (d.setMonth(0, 0) == -day); 149 assert (d.setMonth(1) == 31 * day); 152 assert (d.setMonth(12) == 365 * day); 155 assert (d.setMonth(13) == (365 + 31) * day); 163 assert (d.setUTCMonth(0, 0) == -day); 167 assert (d.setUTCMonth(1) == 31 * day); [all …]
|
/third_party/flutter/skia/third_party/externals/icu/source/i18n/ |
D | erarules.cpp | 38 static UBool isValidRuleStartDate(int32_t year, int32_t month, int32_t day) { in isValidRuleStartDate() argument 40 && month >= 1 && month <= 12 && day >=1 && day <= 31; in isValidRuleStartDate() 53 static int32_t encodeDate(int32_t year, int32_t month, int32_t day) { in encodeDate() argument 54 return year << 16 | month << 8 | day; in encodeDate() 78 static int32_t compareEncodedDateWithYMD(int encoded, int year, int month, int day) { in compareEncodedDateWithYMD() argument 81 if (year > MIN_INT32 || month > 1 || day > 1) { in compareEncodedDateWithYMD() 91 int tmp = encodeDate(year, month, day); in compareEncodedDateWithYMD() 258 int32_t EraRules::getEraIndex(int32_t year, int32_t month, int32_t day, UErrorCode& status) const { in getEraIndex() argument 263 if (month < 1 || month > 12 || day < 1 || day > 31) { in getEraIndex() 272 if (compareEncodedDateWithYMD(startDates[getCurrentEraIndex()], year, month, day) <= 0) { in getEraIndex() [all …]
|
D | hebrwcal.cpp | 393 int32_t day = CalendarCache::get(&gCache, year, status); in startOfYear() local 395 if (day == 0) { in startOfYear() 399 day = months * 29 + (int32_t)(frac / DAY_PARTS); // Whole # part of calculation in startOfYear() 402 int32_t wd = (day % 7); // Day of week (0 == Monday) in startOfYear() 406 day += 1; in startOfYear() 407 wd = (day % 7); in startOfYear() 413 day += 2; in startOfYear() 419 day += 1; in startOfYear() 421 CalendarCache::put(&gCache, year, day, status); in startOfYear() 423 return day; in startOfYear() [all …]
|
/third_party/icu/icu4c/source/i18n/ |
D | hebrwcal.cpp | 393 int32_t day = CalendarCache::get(&gCache, year, status); in startOfYear() local 395 if (day == 0) { in startOfYear() 400 day = months * 29 + (int32_t)(frac / DAY_PARTS); // Whole # part of calculation in startOfYear() 403 int32_t wd = (day % 7); // Day of week (0 == Monday) in startOfYear() 407 day += 1; in startOfYear() 408 wd = (day % 7); in startOfYear() 414 day += 2; in startOfYear() 420 day += 1; in startOfYear() 422 CalendarCache::put(&gCache, year, day, status); in startOfYear() 424 return day; in startOfYear() [all …]
|
/third_party/node/deps/icu-small/source/i18n/ |
D | hebrwcal.cpp | 393 int32_t day = CalendarCache::get(&gCache, year, status); in startOfYear() local 395 if (day == 0) { in startOfYear() 400 day = months * 29 + (int32_t)(frac / DAY_PARTS); // Whole # part of calculation in startOfYear() 403 int32_t wd = (day % 7); // Day of week (0 == Monday) in startOfYear() 407 day += 1; in startOfYear() 408 wd = (day % 7); in startOfYear() 414 day += 2; in startOfYear() 420 day += 1; in startOfYear() 422 CalendarCache::put(&gCache, year, day, status); in startOfYear() 424 return day; in startOfYear() [all …]
|