Home
last modified time | relevance | path

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

12345678910>>...55

/third_party/tzdata/
Dleapseconds.awk201 quadcentury, century, quadyear, year, month, day)
208 day = epoch_days + int(sstamp / (24 * 60 * 60))
222 quadcentury = int(day / ss_quadcentury_days)
223 day -= quadcentury * ss_quadcentury_days
224 ss_wday = (day + 3) % 7
225 century = int(day / ss_century_days)
227 day -= century * ss_century_days
228 quadyear = int(day / ss_quadyear_days)
229 day -= quadyear * ss_quadyear_days
230 year = int(day / ss_year_days)
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/time/internal/cctz/src/
Dcivil_time_test.cc53 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/protobuf/src/google/protobuf/stubs/
Dtime_test.cc43 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 …]
Dtime.cc76 time.day < 1 || time.day > 31 || in ValidateDateTime()
83 return time.day <= kDaysInMonth[time.month] + 1; in ValidateDateTime()
85 return time.day <= kDaysInMonth[time.month]; in ValidateDateTime()
120 assert(time.day >= 1 && in SecondsSinceCommonEra()
121 time.day <= (month == 2 && IsLeapYear(year) in SecondsSinceCommonEra()
124 result += kSecondsPerDay * (time.day - 1); in SecondsSinceCommonEra()
241 int day = 1 + seconds / kSecondsPerDay; in SecondsToDateTime() local
249 time->day = day; in SecondsToDateTime()
277 time.year, time.month, time.day, in FormatTime()
305 if ((data = ParseInt(data, 2, 1, 31, &time.day)) == nullptr) { in ParseTime()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DEraRules.java176 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/
DEraRules.java178 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 …]
DGrego.java111 public static int dayOfWeek(long day) { in dayOfWeek() argument
113 floorDivide(day + 5 /* Calendar.THURSDAY */, 7, remainder); in dayOfWeek()
119 public static int[] dayToFields(long day, int[] fields) { in dayToFields() argument
124 day += JULIAN_1970_CE - JULIAN_1_CE; in dayToFields()
127 long n400 = floorDivide(day, 146097, rem); in dayToFields()
149 int dayOfWeek = (int)((day + 2) % 7); // day 0 is Monday(2) in dayToFields()
179 long day = floorDivide(time, 24*60*60*1000 /* milliseconds per day */, remainder); in timeToFields() local
180 dayToFields(day, fields); in timeToFields()
/third_party/typescript/tests/baselines/reference/
DmappedTypeProperties.types6 >Before : { model: 'hour' | 'day'; }
8 model: 'hour' | 'day';
9 >model : "hour" | "day"
22 model: 'hour' | 'day'
23 >model : "hour" | "day"
30 model: 'hour' | 'day';
31 >model : "hour" | "day"
37 model(duration: number): 'hour' | 'day';
38 >model : (duration: number) => 'hour' | 'day'
46 model: 'hour' | 'day';
[all …]
DvarRequireFromTypescript.symbols30 greatest.day
31 >greatest.day : Symbol(day, Decl(ex.d.ts, 0, 24))
33 >day : Symbol(day, Decl(ex.d.ts, 0, 24))
42 export type Greatest = { day: 1 }
44 >day : Symbol(day, Decl(ex.d.ts, 0, 24))
/third_party/node/deps/v8/src/builtins/
Dbuiltins-date.cc40 double const day = MakeDay(out[DateParser::YEAR], out[DateParser::MONTH], in ParseDateTimeString() local
45 double date = MakeDate(day, time); in ParseDateTimeString()
148 double const day = MakeDay(year, month, date); in BUILTIN() local
150 time_val = MakeDate(day, time); in BUILTIN()
231 double const day = MakeDay(year, month, date); in BUILTIN() local
234 DateCache::TimeClip(MakeDate(day, time))); in BUILTIN()
250 int year, month, day; in BUILTIN() local
251 isolate->date_cache()->YearMonthDayFromDays(days, &year, &month, &day); in BUILTIN()
284 Handle<Object> day = args.at(3); in BUILTIN() local
285 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, day, in BUILTIN()
[all …]
/third_party/mesa3d/bin/
Dgen_calendar_entries.py88 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/skia/third_party/externals/abseil-cpp/absl/time/
Dcivil_time_test.cc48 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/node/deps/npm/node_modules/tiny-relative-date/src/
Dfactory.js13 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/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DHebrewCalendar.java610 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/
DHebrewCalendar.java584 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/jerryscript/tests/jerry/
Ddate-setters.js19 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/node/deps/npm/node_modules/tiny-relative-date/lib/
Dfactory.js23 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/skia/third_party/externals/icu/source/i18n/
Dhebrwcal.cpp393 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 …]
Derarules.cpp41 static UBool isValidRuleStartDate(int32_t year, int32_t month, int32_t day) { in isValidRuleStartDate() argument
43 && month >= 1 && month <= 12 && day >=1 && day <= 31; in isValidRuleStartDate()
56 static int32_t encodeDate(int32_t year, int32_t month, int32_t day) { in encodeDate() argument
57 return year << 16 | month << 8 | day; in encodeDate()
81 static int32_t compareEncodedDateWithYMD(int encoded, int year, int month, int day) { in compareEncodedDateWithYMD() argument
84 if (year > MIN_INT32 || month > 1 || day > 1) { in compareEncodedDateWithYMD()
94 int tmp = encodeDate(year, month, day); in compareEncodedDateWithYMD()
261 int32_t EraRules::getEraIndex(int32_t year, int32_t month, int32_t day, UErrorCode& status) const { in getEraIndex() argument
266 if (month < 1 || month > 12 || day < 1 || day > 31) { in getEraIndex()
275 if (compareEncodedDateWithYMD(startDates[getCurrentEraIndex()], year, month, day) <= 0) { in getEraIndex()
[all …]
/third_party/icu/icu4c/source/i18n/
Dhebrwcal.cpp393 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 …]
Derarules.cpp41 static UBool isValidRuleStartDate(int32_t year, int32_t month, int32_t day) { in isValidRuleStartDate() argument
43 && month >= 1 && month <= 12 && day >=1 && day <= 31; in isValidRuleStartDate()
56 static int32_t encodeDate(int32_t year, int32_t month, int32_t day) { in encodeDate() argument
57 return year << 16 | month << 8 | day; in encodeDate()
81 static int32_t compareEncodedDateWithYMD(int encoded, int year, int month, int day) { in compareEncodedDateWithYMD() argument
84 if (year > MIN_INT32 || month > 1 || day > 1) { in compareEncodedDateWithYMD()
94 int tmp = encodeDate(year, month, day); in compareEncodedDateWithYMD()
261 int32_t EraRules::getEraIndex(int32_t year, int32_t month, int32_t day, UErrorCode& status) const { in getEraIndex() argument
266 if (month < 1 || month > 12 || day < 1 || day > 31) { in getEraIndex()
275 if (compareEncodedDateWithYMD(startDates[getCurrentEraIndex()], year, month, day) <= 0) { in getEraIndex()
[all …]
/third_party/node/deps/icu-small/source/i18n/
Derarules.cpp41 static UBool isValidRuleStartDate(int32_t year, int32_t month, int32_t day) { in isValidRuleStartDate() argument
43 && month >= 1 && month <= 12 && day >=1 && day <= 31; in isValidRuleStartDate()
56 static int32_t encodeDate(int32_t year, int32_t month, int32_t day) { in encodeDate() argument
57 return (int32_t)((uint32_t)year << 16) | month << 8 | day; in encodeDate()
81 static int32_t compareEncodedDateWithYMD(int encoded, int year, int month, int day) { in compareEncodedDateWithYMD() argument
84 if (year > MIN_INT32 || month > 1 || day > 1) { in compareEncodedDateWithYMD()
94 int tmp = encodeDate(year, month, day); in compareEncodedDateWithYMD()
261 int32_t EraRules::getEraIndex(int32_t year, int32_t month, int32_t day, UErrorCode& status) const { in getEraIndex() argument
266 if (month < 1 || month > 12 || day < 1 || day > 31) { in getEraIndex()
275 if (compareEncodedDateWithYMD(startDates[getCurrentEraIndex()], year, month, day) <= 0) { in getEraIndex()
[all …]
Dhebrwcal.cpp397 int32_t day = CalendarCache::get(&gCache, year, status); in startOfYear() local
399 if (day == 0) { in startOfYear()
404 day = months * 29 + (int32_t)(frac / DAY_PARTS); // Whole # part of calculation in startOfYear()
407 int32_t wd = (day % 7); // Day of week (0 == Monday) in startOfYear()
411 day += 1; in startOfYear()
412 wd = (day % 7); in startOfYear()
418 day += 2; in startOfYear()
424 day += 1; in startOfYear()
426 CalendarCache::put(&gCache, year, day, status); in startOfYear()
428 return day; in startOfYear()
[all …]
/third_party/rust/crates/version_check/src/
Ddate.rs60 let (year, month, day) = (ymd[0], ymd[1], ymd[2]); in parse()
61 if year == 0 || month == 0 || month > 12 || day == 0 || day > 31 { in parse()
65 Some(Date::from_ymd(year, month as u8, day as u8)) in parse()
86 pub fn from_ymd(year: u16, month: u8, day: u8) -> Date { in from_ymd()
89 let day = (day as u32) & 0x1F; in from_ymd() localVariable
90 Date(year | month | day) in from_ymd()
/third_party/openssl/test/
Dasn1_time_test.c116 int day, sec; in test_table() local
135 if (!TEST_true(ASN1_TIME_diff(&day, &sec, &atime, &atime))) { in test_table()
139 if (!TEST_int_eq(day, 0) || !TEST_int_eq(sec, 0)) { in test_table()
144 if (!TEST_true(ASN1_TIME_diff(&day, &sec, &gtime, &atime))) { in test_table()
147 } else if (!((td->cmp_result == 0 && TEST_true((day == 0 && sec == 0))) || in test_table()
148 (td->cmp_result == -1 && TEST_true((day < 0 || sec < 0))) || in test_table()
149 (td->cmp_result == 1 && TEST_true((day > 0 || sec > 0))))) { in test_table()
197 day = sec = 0; in test_table()
198 …if (!TEST_true(ASN1_TIME_diff(&day, &sec, ptime, &atime)) || !TEST_int_eq(day, 0) || !TEST_int_eq(… in test_table()
199 …("ASN1_TIME_diff(day=%d, sec=%d, %s) after ASN1_TIME_set_string_gmt() failed", day, sec, td->data); in test_table()
[all …]

12345678910>>...55