Home
last modified time | relevance | path

Searched refs:day (Results 1 - 25 of 333) sorted by relevance

12345678910>>...14

/third_party/skia/third_party/externals/abseil-cpp/absl/time/internal/cctz/src/
H A 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()
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A DEraRules.java144 * @return An int array including values of year, month, day of month in this order.
170 * Returns era index for the specified year/month/day.
173 * @param day Day of month
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 throw 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) < in getEraIndex()
241 isValidRuleStartDate(int year, int month, int day) isValidRuleStartDate() argument
256 encodeDate(int year, int month, int day) encodeDate() argument
292 compareEncodedDateWithYMD(int encoded, int year, int month, int day) compareEncodedDateWithYMD() argument
[all...]
H A DGrego.java88 * Convert a year, month, and day-of-month, given in the proleptic
92 * @param dom 1-based day of month
93 * @return the day number, with day 0 == Jan 1 1970
101 return julian - JULIAN_1970_CE; // JD => epoch day in fieldsToDay()
105 * Return the day of week on the 1970-epoch day
106 * @param day the 1970-epoch day (integral value)
107 * @return the day o
109 dayOfWeek(long day) dayOfWeek() argument
117 dayToFields(long day, int[] fields) dayToFields() argument
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
H A DEraRules.java146 * @return An int array including values of year, month, day of month in this order.
172 * Returns era index for the specified year/month/day.
175 * @param day Day of month
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 throw 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) < in getEraIndex()
243 isValidRuleStartDate(int year, int month, int day) isValidRuleStartDate() argument
258 encodeDate(int year, int month, int day) encodeDate() argument
294 compareEncodedDateWithYMD(int encoded, int year, int month, int day) compareEncodedDateWithYMD() argument
[all...]
H A DGrego.java90 * Convert a year, month, and day-of-month, given in the proleptic
94 * @param dom 1-based day of month
95 * @return the day number, with day 0 == Jan 1 1970
103 return julian - JULIAN_1970_CE; // JD => epoch day in fieldsToDay()
107 * Return the day of week on the 1970-epoch day
108 * @param day the 1970-epoch day (integral value)
109 * @return the day o
111 dayOfWeek(long day) dayOfWeek() argument
119 dayToFields(long day, int[] fields) dayToFields() argument
[all...]
/third_party/tzdata/
H A Dleapseconds.awk15 # there will be more than 25 hours per day and so some other scheme
165 # ss_mday - day of the month (1-31)
169 # ss_wday - day of week (0-Sunday to 6-Saturday)
194 # Standard day epochs, suitable for epoch_days.
201 quadcentury, century, quadyear, year, month, day)
208 day = epoch_days + int(sstamp / (24 * 60 * 60))
210 # Compute a year-month-day date with days of the month numbered
212 # start March 1 and end after the last day of February. A quad-year
214 # the last day of February 4 years later. A century starts on and
219 # Any variation is in the last day o
[all...]
/third_party/protobuf/src/google/protobuf/stubs/
H A 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 in TEST()
[all...]
H A 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()
[all...]
/third_party/node/deps/v8/src/builtins/
H A 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()
308 int day = isolate->date_cache()->DaysFromTime(local_time_ms); BUILTIN() local
347 int day = isolate->date_cache()->DaysFromTime(local_time_ms); BUILTIN() local
369 int day = isolate->date_cache()->DaysFromTime(local_time_ms); BUILTIN() local
406 int year, unused, day; BUILTIN() local
433 int day = isolate->date_cache()->DaysFromTime(local_time_ms); BUILTIN() local
471 int year, month, day; BUILTIN() local
504 Handle<Object> day = args.at(3); BUILTIN() local
527 int day = isolate->date_cache()->DaysFromTime(time_ms); BUILTIN() local
565 int day = isolate->date_cache()->DaysFromTime(time_ms); BUILTIN() local
586 int day = isolate->date_cache()->DaysFromTime(time_ms); BUILTIN() local
622 int year, unused, day; BUILTIN() local
648 int day = isolate->date_cache()->DaysFromTime(time_ms); BUILTIN() local
686 int year, month, day, weekday, hour, min, sec, ms; BUILTIN() local
692 year, month + 1, day, hour, min, sec, ms); BUILTIN() local
695 -year, month + 1, day, hour, min, sec, ms); BUILTIN() local
698 year, month + 1, day, hour, min, sec, ms); BUILTIN() local
807 int year, month, day; BUILTIN() local
[all...]
/third_party/node/deps/npm/node_modules/tiny-relative-date/lib/
H A 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/icu/icu4c/source/i18n/
H A Dhebrwcal.cpp35 * time of day in sync with that of the Gregorian calendar, we use
36 * midnight, rather than sunset the day before.
366 // counting from noon on the day before. BAHARAD is an abbreviation of
371 * Finds the day # of the first day in the given Hebrew year.
393 int32_t day = CalendarCache::get(&gCache, year, status); in startOfYear() local
395 if (day == 0) { in startOfYear()
399 int64_t frac = (int64_t)months * MONTH_FRACT + BAHARAD; // Fractional part of day # in startOfYear()
400 day = months * 29 + (int32_t)(frac / DAY_PARTS); // Whole # part of calculation in startOfYear()
401 frac = frac % DAY_PARTS; // Time of day in startOfYear()
433 absoluteDayToDayOfWeek(int32_t day) absoluteDayToDayOfWeek() argument
652 int32_t day = startOfYear(eyear, status); handleComputeMonthStart() local
[all...]
H A 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()
49 * next 8 bits and day of month is last 8 bits.
53 * @param day day of month
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()
73 * Compare an encoded date with another date specified by year/month/day.
77 * @param day Da
81 compareEncodedDateWithYMD(int encoded, int year, int month, int day) compareEncodedDateWithYMD() argument
261 getEraIndex(int32_t year, int32_t month, int32_t day, UErrorCode& status) const getEraIndex() argument
[all...]
H A Dgregoimp.cpp101 return julian - JULIAN_1970_CE; // JD => epoch day in fieldsToDay()
104 void Grego::dayToFields(double day, int32_t& year, int32_t& month, in dayToFields() argument
108 day += JULIAN_1970_CE - JULIAN_1_CE; in dayToFields()
110 // Convert from the day number to the multiple radix in dayToFields()
112 // For example, the 4-year cycle has 4 years + 1 leap day; giving in dayToFields()
114 int32_t n400 = ClockMath::floorDivide(day, 146097, &doy); // 400-year cycle length in dayToFields()
127 // Gregorian day zero is a Monday. in dayToFields()
128 dow = (int32_t) uprv_fmod(day + 1, 7); in dayToFields()
145 double day = ClockMath::floorDivide((double)time, (double)U_MILLIS_PER_DAY, &millisInDay); in timeToFields() local
147 dayToFields(day, yea in timeToFields()
150 dayOfWeek(double day) dayOfWeek() argument
[all...]
/third_party/mesa3d/bin/
H A 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
[all...]
/third_party/skia/third_party/externals/icu/source/i18n/
H A Dhebrwcal.cpp35 * time of day in sync with that of the Gregorian calendar, we use
36 * midnight, rather than sunset the day before.
366 // counting from noon on the day before. BAHARAD is an abbreviation of
371 * Finds the day # of the first day in the given Hebrew year.
393 int32_t day = CalendarCache::get(&gCache, year, status); in startOfYear() local
395 if (day == 0) { in startOfYear()
399 int64_t frac = (int64_t)months * MONTH_FRACT + BAHARAD; // Fractional part of day # in startOfYear()
400 day = months * 29 + (int32_t)(frac / DAY_PARTS); // Whole # part of calculation in startOfYear()
401 frac = frac % DAY_PARTS; // Time of day in startOfYear()
433 absoluteDayToDayOfWeek(int32_t day) absoluteDayToDayOfWeek() argument
652 int32_t day = startOfYear(eyear, status); handleComputeMonthStart() local
[all...]
H A 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()
49 * next 8 bits and day of month is last 8 bits.
53 * @param day day of month
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()
73 * Compare an encoded date with another date specified by year/month/day.
77 * @param day Da
81 compareEncodedDateWithYMD(int encoded, int year, int month, int day) compareEncodedDateWithYMD() argument
261 getEraIndex(int32_t year, int32_t month, int32_t day, UErrorCode& status) const getEraIndex() argument
[all...]
/third_party/jerryscript/tests/jerry/
H A 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);
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/time/
H A 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()
1161 int day; TEST() member
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
H A DHebrewCalendar.java24 * on the day of (an arithmetic approximation of) each new moon. Since the
168 * time of day in sync with that of the Gregorian calendar, we use
169 * midnight, rather than sunset the day before.
584 // counting from noon on the day before. BAHARAD is an abbreviation of
589 * Finds the day # of the first day in the given Hebrew year.
610 long day = cache.get(year); in startOfYear()
612 if (day == CalendarCache.EMPTY) { in startOfYear()
616 long frac = months * MONTH_FRACT + BAHARAD; // Fractional part of day # in startOfYear()
617 day in startOfYear()
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
H A DHebrewCalendar.java25 * on the day of (an arithmetic approximation of) each new moon. Since the
155 * time of day in sync with that of the Gregorian calendar, we use
156 * midnight, rather than sunset the day before.
558 // counting from noon on the day before. BAHARAD is an abbreviation of
563 * Finds the day # of the first day in the given Hebrew year.
584 long day = cache.get(year); in startOfYear()
586 if (day == CalendarCache.EMPTY) { in startOfYear()
589 long frac = months * MONTH_FRACT + BAHARAD; // Fractional part of day # in startOfYear()
590 day in startOfYear()
[all...]
/third_party/rust/crates/version_check/src/
H A Ddate.rs3 /// Release date including year, month, and day.
60 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()
68 /// Creates a `Date` from `(year, month, day)` date components.
70 /// Does not check the validity of `year`, `month`, or `day`, but `year` is
71 /// truncated to 23 bits (% 8,388,608), `month` to 4 bits (% 16), and `day`
86 pub fn from_ymd(year: u16, month: u8, day: u8) -> Date { in from_ymd()
89 let day in from_ymd()
[all...]
/third_party/node/deps/icu-small/source/i18n/
H A 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()
49 * next 8 bits and day of month is last 8 bits.
53 * @param day day of month
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()
73 * Compare an encoded date with another date specified by year/month/day.
77 * @param day Da
81 compareEncodedDateWithYMD(int encoded, int year, int month, int day) compareEncodedDateWithYMD() argument
261 getEraIndex(int32_t year, int32_t month, int32_t day, UErrorCode& status) const getEraIndex() argument
[all...]
/third_party/node/deps/v8/src/date/
H A Ddateparser-inl.h21 DayComposer day; in Parse() local
36 // end of a day, in Parse()
72 DateToken next_unhandled_token = ParseES5DateTime(&scanner, &day, &time, &tz); in Parse()
74 bool has_read_number = !day.IsEmpty(); in Parse()
111 if (!day.Add(n)) return false; in Parse()
122 day.SetNamedMonth(value); in Parse()
172 bool success = day.Write(out) && time.Write(out) && tz.Write(out); in Parse()
238 DateStringTokenizer<Char>* scanner, DayComposer* day, TimeComposer* time, in ParseES5DateTime()
240 DCHECK(day->IsEmpty()); in ParseES5DateTime()
253 day in ParseES5DateTime()
237 ParseES5DateTime( DateStringTokenizer<Char>* scanner, DayComposer* day, TimeComposer* time, TimeZoneComposer* tz) ParseES5DateTime() argument
[all...]
H A Ddate.cc83 int* day) { in YearMonthDayFromDays()
93 *day = new_day; in YearMonthDayFromDays()
138 *day = days + 1; in YearMonthDayFromDays()
147 *day = days + 1; in YearMonthDayFromDays()
150 *day = days - 31 + 1; in YearMonthDayFromDays()
153 DCHECK(DaysFromYearMonth(*year, *month) + *day - 1 == save_days); in YearMonthDayFromDays()
157 ymd_day_ = *day; in YearMonthDayFromDays()
200 void DateCache::BreakDownTime(int64_t time_ms, int* year, int* month, int* day, in BreakDownTime() argument
205 YearMonthDayFromDays(days, year, month, day); in BreakDownTime()
475 double MakeDate(double day, doubl argument
82 YearMonthDayFromDays(int days, int* year, int* month, int* day) YearMonthDayFromDays() argument
565 int year, month, day, weekday, hour, min, sec, ms; ToDateString() local
[all...]
/third_party/python/Misc/
H A Dcoverity_model.c147 ymd_to_ord(int year, int month, int day) in ymd_to_ord() argument
153 __coverity_tainted_data_sanitize__(day); in ymd_to_ord()
159 normalize_date(int *year, int *month, int *day) in normalize_date() argument
163 __coverity_tainted_data_sanitize__(*day); in normalize_date()
169 weekday(int year, int month, int day) in weekday() argument
175 __coverity_tainted_data_sanitize__(day); in weekday()

Completed in 14 milliseconds

12345678910>>...14