/third_party/typescript/tests/baselines/reference/ |
H A D | declFileTypeofEnum.js | 2 enum days { 12 var weekendDay = days.saturday; 13 var daysOfMonth = days; 14 var daysOfYear: typeof days;
17 var days;
variable 18 (function (days) {
19 days[days["monday"] = 0] = "monday";
20 days[days["tuesda [all...] |
/third_party/node/deps/v8/src/date/ |
H A D | date.cc | 82 void DateCache::YearMonthDayFromDays(int days, int* year, int* month, in YearMonthDayFromDays() argument 85 // Check conservatively if the given 'days' has in YearMonthDayFromDays() 86 // the same year and month as the cached 'days'. in YearMonthDayFromDays() 87 int new_day = ymd_day_ + (days - ymd_days_); in YearMonthDayFromDays() 90 ymd_days_ = days; in YearMonthDayFromDays() 97 int save_days = days; in YearMonthDayFromDays() 99 days += kDaysOffset; in YearMonthDayFromDays() 100 *year = 400 * (days / kDaysIn400Years) - kYearsOffset; in YearMonthDayFromDays() 101 days %= kDaysIn400Years; in YearMonthDayFromDays() 103 DCHECK_EQ(save_days, DaysFromYearMonth(*year, 0) + days); in YearMonthDayFromDays() 203 int const days = DaysFromTime(time_ms); BreakDownTime() local [all...] |
H A D | date.h | 59 // days = floor(time_ms / kMsPerDay). 60 static int TimeInDay(int64_t time_ms, int days) { in TimeInDay() argument 61 return static_cast<int>(time_ms - days * kMsPerDay); in TimeInDay() 67 // Given the number of days since the epoch, computes the weekday. 69 int Weekday(int days) { in Weekday() argument 70 int result = (days + 4) % 7; in Weekday() 123 int days = DaysFromTime(time_ms); in EquivalentTime() local 124 int time_within_day_ms = static_cast<int>(time_ms - days * kMsPerDay); in EquivalentTime() 126 YearMonthDayFromDays(days, &year, &month, &day); in EquivalentTime() 143 // Given the number of days sinc [all...] |
/third_party/ltp/lib/ |
H A D | tst_rtctime.c | 47 * The number of days in the month. 61 int days; in tst_rtc_time_to_tm() local 64 days = time / 86400; in tst_rtc_time_to_tm() 68 tm->tm_wday = (days + 4) % 7; in tst_rtc_time_to_tm() 70 year = 1970 + days / 365; in tst_rtc_time_to_tm() 71 days -= (year - 1970) * 365 in tst_rtc_time_to_tm() 74 while (days < 0) { in tst_rtc_time_to_tm() 76 days += 365 + is_leap_year(year); in tst_rtc_time_to_tm() 79 tm->tm_yday = days + 1; in tst_rtc_time_to_tm() 84 newdays = days in tst_rtc_time_to_tm() [all...] |
/third_party/toybox/toys/other/ |
H A D | uptime.c | 31 unsigned int weeks, days, hours, minutes; in uptime_main() local 55 days = info.uptime/24; in uptime_main() 58 weeks = days/7; in uptime_main() 59 days %= 7; in uptime_main() 62 days, (days!=1)?"s":"", in uptime_main() 67 if (days) xprintf("%d day%s, ", days, (days!=1)?"s":""); in uptime_main()
|
/third_party/icu/icu4c/source/samples/cal/ |
H A D | cal.c | 62 UChar *days [], UBool useLongNames, 65 static void free_days(UChar *days[]); 75 static void print_days(UChar *days [], FILE *f, UErrorCode *status); 78 UChar *days [], 83 UChar *days [], UChar *months [], 90 /* Number of days in a week */ 236 UChar *days [DAY_COUNT]; in cal() local 257 print_year(c, days, months, useLongNames, fdow, status); in cal() 273 print_month(c, days, useLongNames, fdow, status); in cal() 333 form. Also, reorder the days s 354 free_days(UChar *days[]) free_days() argument [all...] |
/third_party/skia/third_party/externals/icu/source/samples/cal/ |
H A D | cal.c | 62 UChar *days [], UBool useLongNames, 65 static void free_days(UChar *days[]); 75 static void print_days(UChar *days [], FILE *f, UErrorCode *status); 78 UChar *days [], 83 UChar *days [], UChar *months [], 90 /* Number of days in a week */ 236 UChar *days [DAY_COUNT]; in cal() local 257 print_year(c, days, months, useLongNames, fdow, status); in cal() 273 print_month(c, days, useLongNames, fdow, status); in cal() 333 form. Also, reorder the days s 354 free_days(UChar *days[]) free_days() argument [all...] |
/third_party/nghttp2/src/ |
H A D | timegm.c | 38 int days; in nghttp2_timegm() local 45 days = (tm->tm_year - 70) * 365 + num_leap_year + tm->tm_yday; in nghttp2_timegm() 46 t = ((int64_t)days * 24 + tm->tm_hour) * 3600 + tm->tm_min * 60 + tm->tm_sec; in nghttp2_timegm() 63 /* The number of days before ith month begins */ 67 int days; in nghttp2_timegm_without_yday() local 74 days = (tm->tm_year - 70) * 365 + num_leap_year + daysum[tm->tm_mon] + in nghttp2_timegm_without_yday() 77 ++days; in nghttp2_timegm_without_yday() 79 t = ((int64_t)days * 24 + tm->tm_hour) * 3600 + tm->tm_min * 60 + tm->tm_sec; in nghttp2_timegm_without_yday()
|
/third_party/musl/porting/liteos_a/kernel/src/time/ |
H A D | __secs_to_tm.c | 13 long long days, secs, years; in __secs_to_tm() local 25 days = secs / 86400; in __secs_to_tm() 29 days--; in __secs_to_tm() 32 wday = (3+days)%7; in __secs_to_tm() 35 qc_cycles = days / DAYS_PER_400Y; in __secs_to_tm() 36 remdays = days % DAYS_PER_400Y; in __secs_to_tm()
|
/third_party/musl/porting/uniproton/kernel/src/time/ |
H A D | __secs_to_tm.c | 13 long long days, secs, years; in __secs_to_tm() local 25 days = secs / 86400; in __secs_to_tm() 29 days--; in __secs_to_tm() 32 wday = (3+days)%7; in __secs_to_tm() 35 qc_cycles = days / DAYS_PER_400Y; in __secs_to_tm() 36 remdays = days % DAYS_PER_400Y; in __secs_to_tm()
|
/third_party/musl/porting/liteos_m/kernel/src/time/ |
H A D | __secs_to_tm.c | 13 long long days, secs, years; in __secs_to_tm() local 25 days = secs / 86400; in __secs_to_tm() 29 days--; in __secs_to_tm() 32 wday = (3+days)%7; in __secs_to_tm() 35 qc_cycles = days / DAYS_PER_400Y; in __secs_to_tm() 36 remdays = days % DAYS_PER_400Y; in __secs_to_tm()
|
/third_party/musl/src/time/ |
H A D | __secs_to_tm.c | 13 long long days, secs, years; in __secs_to_tm() local 25 days = secs / 86400; in __secs_to_tm() 29 days--; in __secs_to_tm() 32 wday = (3+days)%7; in __secs_to_tm() 35 qc_cycles = days / DAYS_PER_400Y; in __secs_to_tm() 36 remdays = days % DAYS_PER_400Y; in __secs_to_tm()
|
/third_party/openssl/test/certs/ |
H A D | mkcert.sh | 115 cert "$cert" "$exts" -signkey "${key}.pem" -set_serial 1 -days "${DAYS}" 157 -set_serial 2 -days "${DAYS}" "$@" 178 -set_serial 2 -days "${DAYS}" 200 -set_serial 2 -days "${DAYS}" 217 -set_serial 2 -days "${DAYS}" 267 -set_serial 2 -days "${DAYS}" "$@" 301 -set_serial 2 -days "${DAYS}" "$@" 330 -set_serial 2 -days "${DAYS}" "$@" 347 -set_serial 1 -days "${DAYS}" "$@" 356 cert "$cert" "" -signkey "${key}.pem" -set_serial 1 -days [all...] |
/third_party/node/deps/icu-small/source/i18n/ |
H A D | islamcal.cpp | 233 // a month as having 31 days. Since date parsing now uses range checks based 434 * Return the length (in days) of the given month. 446 * Return the number of days in the given Islamic year 515 int32_t days = julianDay - getEpoc(); in handleComputeFields() 518 int32_t month = (int32_t)uprv_floor((double)days / CalendarAstronomer::SYNODIC_MONTH); in handleComputeFields() 527 if ( days - startDate >= 25 && age > 0) { in handleComputeFields() 534 while ((startDate = trueMonthStart(month)) > days) { in handleComputeFields() 541 int32_t dayOfMonth = (days - monthStart(year, month)) + 1; in handleComputeFields() 544 int32_t dayOfYear = (days - monthStart(year, 0)) + 1; in handleComputeFields() 639 int32_t days in inTemporalLeapYear() local [all...] |
H A D | chnsecal.cpp | 83 * Value to be added or subtracted from the local days of a new moon to 238 * Override Calendar method to return the number of days in the given 247 kEpochStartAsJulianDay + 1; // Julian day -> local days in handleGetMonthLength() 272 computeChineseFields(julianDay - kEpochStartAsJulianDay, // local days in handleComputeFields() 478 * Convert local days to UTC epoch milliseconds. 486 * @param days days after January 1, 1970 0:00 in the astronomical base zone 489 double ChineseCalendar::daysToMillis(double days) const { in daysToMillis() 490 double millis = days * (double)kOneDay; in daysToMillis() 503 * Convert UTC epoch milliseconds to local days 572 newMoonNear(double days, UBool after) const newMoonNear() argument 683 computeChineseFields(int32_t days, int32_t gyear, int32_t gmonth, UBool setAllFields) computeChineseFields() argument 930 int32_t days = getActualMaximum(UCAL_DAY_OF_YEAR, status); inTemporalLeapYear() local [all...] |
/third_party/mesa3d/bin/ |
H A D | gen_calendar_entries.py | 114 date = date + datetime.timedelta(days=7) 116 date = date + datetime.timedelta(days=7) 125 If the next is .0, we have the release in seven days, if the next is .1, 142 return date + datetime.timedelta(days=delta) 158 date = date + datetime.timedelta(days=14) 160 date = date + datetime.timedelta(days=14) 209 days = 7 213 days = 14 217 date = date + datetime.timedelta(days=days) [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
H A D | ChineseCalendar.java | 95 // days.' This is the number of days after January 1, 1970 Gregorian, 98 // 1970 0:00 Asia/Shanghai. Conversion of local days to and from 124 * Cache that maps Gregorian year to local days of winter solstice. 130 * Cache that maps Gregorian year to local days of Chinese new year. 378 * DAY_OF_YEAR In a non-leap year there are 353, 354, or 355 days. In 379 * a leap year there are 383, 384, or 385 days. 381 * WEEK_OF_YEAR The least maximum occurs if there are 353 days in the 383 * we have 49 full weeks and 4 days in the last week: 6 + 49*7 + 4 = 385 * 385 days i 673 daysToMillis(int days) daysToMillis() argument 730 newMoonNear(int days, boolean after) newMoonNear() argument 755 majorSolarTerm(int days) majorSolarTerm() argument 853 computeChineseFields(int days, int gyear, int gmonth, boolean setAllFields) computeChineseFields() argument [all...] |
H A D | IslamicCalendar.java | 32 * about 354 days long, so each successive Islamic year starts about 11 days 38 * we treat days and months as beginning at midnight, 56 * by up to three days. 401 * bit map array where a bit turned on represents a month with 30 days. 561 // * @param day The # of days since the start of the Islamic calendar. 734 * Return the length (in days) of the given month. 771 * Return the number of days in the given Islamic year 847 long days = julianDay - CIVIL_EPOC; in handleComputeFields() 851 days in handleComputeFields() [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/ |
H A D | ChineseCalendar.java | 95 // days.' This is the number of days after January 1, 1970 Gregorian, 98 // 1970 0:00 Asia/Shanghai. Conversion of local days to and from 124 * Cache that maps Gregorian year to local days of winter solstice. 130 * Cache that maps Gregorian year to local days of Chinese new year. 368 * DAY_OF_YEAR In a non-leap year there are 353, 354, or 355 days. In 369 * a leap year there are 383, 384, or 385 days. 371 * WEEK_OF_YEAR The least maximum occurs if there are 353 days in the 373 * we have 49 full weeks and 4 days in the last week: 6 + 49*7 + 4 = 375 * 385 days i 655 daysToMillis(int days) daysToMillis() argument 712 newMoonNear(int days, boolean after) newMoonNear() argument 737 majorSolarTerm(int days) majorSolarTerm() argument 834 computeChineseFields(int days, int gyear, int gmonth, boolean setAllFields) computeChineseFields() argument [all...] |
H A D | IslamicCalendar.java | 33 * about 354 days long, so each successive Islamic year starts about 11 days 39 * we treat days and months as beginning at midnight, 57 * by up to three days. 380 * bit map array where a bit turned on represents a month with 30 days. 539 // * @param day The # of days since the start of the Islamic calendar. 711 * Return the length (in days) of the given month. 747 * Return the number of days in the given Islamic year 819 long days = julianDay - CIVIL_EPOC; in handleComputeFields() 823 days in handleComputeFields() [all...] |
/third_party/icu/icu4c/source/i18n/ |
H A D | islamcal.cpp | 278 // a month as having 31 days. Since date parsing now uses range checks based 502 * Return the length (in days) of the given month. 528 * Return the number of days in the given Islamic year 609 int32_t days = julianDay - CIVIL_EPOC; in handleComputeFields() local 613 days = julianDay - ASTRONOMICAL_EPOC; in handleComputeFields() 616 year = (int32_t)ClockMath::floorDivide(30 * (int64_t)days + 10646, (int64_t)10631); in handleComputeFields() 617 month = (int32_t)uprv_ceil((days - 29 - yearStart(year)) / 29.5 ); in handleComputeFields() 622 int32_t months = (int32_t)uprv_floor((double)days / CalendarAstronomer::SYNODIC_MONTH); in handleComputeFields() 631 if ( days - startDate >= 25 && age > 0) { in handleComputeFields() 638 while ((startDate = trueMonthStart(months)) > days) { in handleComputeFields() [all...] |
H A D | chnsecal.cpp | 80 * Value to be added or subtracted from the local days of a new moon to 234 * Override Calendar method to return the number of days in the given 243 kEpochStartAsJulianDay + 1; // Julian day -> local days in handleGetMonthLength() 268 computeChineseFields(julianDay - kEpochStartAsJulianDay, // local days in handleComputeFields() 472 * Convert local days to UTC epoch milliseconds. 480 * @param days days after January 1, 1970 0:00 in the astronomical base zone 483 double ChineseCalendar::daysToMillis(double days) const { in daysToMillis() 484 double millis = days * (double)kOneDay; in daysToMillis() 497 * Convert UTC epoch milliseconds to local days 566 newMoonNear(double days, UBool after) const newMoonNear() argument 673 computeChineseFields(int32_t days, int32_t gyear, int32_t gmonth, UBool setAllFields) computeChineseFields() argument [all...] |
/third_party/skia/third_party/externals/icu/source/i18n/ |
H A D | islamcal.cpp | 278 // a month as having 31 days. Since date parsing now uses range checks based 502 * Return the length (in days) of the given month. 528 * Return the number of days in the given Islamic year 609 int32_t days = julianDay - CIVIL_EPOC; in handleComputeFields() local 613 days = julianDay - ASTRONOMICAL_EPOC; in handleComputeFields() 616 year = (int32_t)ClockMath::floorDivide(30 * (int64_t)days + 10646, (int64_t)10631); in handleComputeFields() 617 month = (int32_t)uprv_ceil((days - 29 - yearStart(year)) / 29.5 ); in handleComputeFields() 622 int32_t months = (int32_t)uprv_floor((double)days / CalendarAstronomer::SYNODIC_MONTH); in handleComputeFields() 631 if ( days - startDate >= 25 && age > 0) { in handleComputeFields() 638 while ((startDate = trueMonthStart(months)) > days) { in handleComputeFields() [all...] |
H A D | chnsecal.cpp | 80 * Value to be added or subtracted from the local days of a new moon to 234 * Override Calendar method to return the number of days in the given 243 kEpochStartAsJulianDay + 1; // Julian day -> local days in handleGetMonthLength() 268 computeChineseFields(julianDay - kEpochStartAsJulianDay, // local days in handleComputeFields() 472 * Convert local days to UTC epoch milliseconds. 480 * @param days days after January 1, 1970 0:00 in the astronomical base zone 483 double ChineseCalendar::daysToMillis(double days) const { in daysToMillis() 484 double millis = days * (double)kOneDay; in daysToMillis() 497 * Convert UTC epoch milliseconds to local days 566 newMoonNear(double days, UBool after) const newMoonNear() argument 673 computeChineseFields(int32_t days, int32_t gyear, int32_t gmonth, UBool setAllFields) computeChineseFields() argument [all...] |
/third_party/node/deps/v8/src/builtins/ |
H A D | builtins-date.cc | 248 int const days = isolate->date_cache()->DaysFromTime(local_time_ms); in BUILTIN() local 249 int time_within_day = isolate->date_cache()->TimeInDay(local_time_ms, days); in BUILTIN() 251 isolate->date_cache()->YearMonthDayFromDays(days, &year, &month, &day); in BUILTIN() 270 int const days = isolate->date_cache()->DaysFromTime(local_time_ms); in BUILTIN() local 271 time_within_day = isolate->date_cache()->TimeInDay(local_time_ms, days); in BUILTIN() 273 isolate->date_cache()->YearMonthDayFromDays(days, &year_int, &month_int, in BUILTIN() 404 int days = isolate->date_cache()->DaysFromTime(local_time_ms); in BUILTIN() local 405 int time_within_day = isolate->date_cache()->TimeInDay(local_time_ms, days); in BUILTIN() 407 isolate->date_cache()->YearMonthDayFromDays(days, &year, &unused, &day); in BUILTIN() 469 int const days in BUILTIN() local 490 int const days = isolate->date_cache()->DaysFromTime(time_ms); BUILTIN() local 620 int days = isolate->date_cache()->DaysFromTime(time_ms); BUILTIN() local 806 int days = isolate->date_cache()->DaysFromTime(local_time_ms); BUILTIN() local 830 int const days = isolate->date_cache()->DaysFromTime(local_time_ms); BUILTIN() local [all...] |