/third_party/node/deps/icu-small/source/i18n/ |
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...] |
H A D | chnsecal.h | 244 double daysToMillis(double days) const; 247 virtual int32_t newMoonNear(double days, UBool after) const; 249 virtual int32_t majorSolarTerm(int32_t days) const; 252 virtual void computeChineseFields(int32_t days, int32_t gyear,
|
/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...] |
/kernel/liteos_m/kal/posix/src/ |
H A D | time.c | 537 time_t days; in ConvertSecs2Utc() local 543 days = t / SECS_PER_DAY; in ConvertSecs2Utc() 548 --days; in ConvertSecs2Utc() 552 ++days; in ConvertSecs2Utc() 559 tp->tm_wday = (BEGIN_WEEKDAY + days) % DAYS_PER_WEEK; in ConvertSecs2Utc() 565 while ((days < 0) || in ConvertSecs2Utc() 566 (days >= (IS_LEAP_YEAR (year) ? DAYS_PER_LEAP_YEAR : DAYS_PER_NORMAL_YEAR))) { in ConvertSecs2Utc() 567 /* Guess a corrected year, assuming 365 days per year. */ in ConvertSecs2Utc() 568 yearGuess = year + days / DAYS_PER_NORMAL_YEAR - (days in ConvertSecs2Utc() [all...] |
/kernel/linux/linux-5.10/drivers/rtc/ |
H A D | rtc-ftrtc010.c | 68 u32 days, hour, min, sec, offset; in ftrtc010_rtc_read_time() local 74 days = readl(rtc->rtc_base + FTRTC010_RTC_DAYS); in ftrtc010_rtc_read_time() 77 time = offset + days * 86400 + hour * 3600 + min * 60 + sec; in ftrtc010_rtc_read_time() 112 u32 days, hour, min, sec; in ftrtc010_rtc_probe() local 168 days = readl(rtc->rtc_base + FTRTC010_RTC_DAYS); in ftrtc010_rtc_probe() 170 rtc->rtc_dev->range_min = (u64)days * 86400 + hour * 3600 + in ftrtc010_rtc_probe()
|
/kernel/linux/linux-6.6/drivers/rtc/ |
H A D | rtc-ftrtc010.c | 68 u32 days, hour, min, sec, offset; in ftrtc010_rtc_read_time() local 74 days = readl(rtc->rtc_base + FTRTC010_RTC_DAYS); in ftrtc010_rtc_read_time() 77 time = offset + days * 86400 + hour * 3600 + min * 60 + sec; in ftrtc010_rtc_read_time() 112 u32 days, hour, min, sec; in ftrtc010_rtc_probe() local 174 days = readl(rtc->rtc_base + FTRTC010_RTC_DAYS); in ftrtc010_rtc_probe() 176 rtc->rtc_dev->range_min = (u64)days * 86400 + hour * 3600 + in ftrtc010_rtc_probe()
|
H A D | lib_test.c | 37 * = (160000 / 400) * 146097 days in rtc_time64_to_tm_test_date_range() 49 s64 days; in rtc_time64_to_tm_test_date_range() local 55 days = div_s64(secs, 86400); in rtc_time64_to_tm_test_date_range() 58 year, month, mday, yday, days in rtc_time64_to_tm_test_date_range()
|
H A D | lib.c | 28 * The number of days in the month. 37 * The number of days since January 1. (0 to 365) 55 int days; in rtc_time64_to_tm() local 63 days = div_s64_rem(time, 86400, &secs); in rtc_time64_to_tm() 66 tm->tm_wday = (days + 4) % 7; in rtc_time64_to_tm() 96 udays = ((u32) days) + 719468; in rtc_time64_to_tm()
|
/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.h | 186 double daysToMillis(double days) const; 189 virtual int32_t newMoonNear(double days, UBool after) const; 191 virtual int32_t majorSolarTerm(int32_t days) const; 194 virtual void computeChineseFields(int32_t days, int32_t gyear,
|
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.h | 186 double daysToMillis(double days) const; 189 virtual int32_t newMoonNear(double days, UBool after) const; 191 virtual int32_t majorSolarTerm(int32_t days) const; 194 virtual void computeChineseFields(int32_t days, int32_t gyear,
|
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...] |
/kernel/linux/linux-6.6/kernel/time/ |
H A D | time_test.c | 57 * = (80000 / 400) * 146097 days in time64_to_tm_test_date_range() 68 s64 days; in time64_to_tm_test_date_range() local 74 days = div_s64(secs, 86400); in time64_to_tm_test_date_range() 77 year, month, mdday, yday, days in time64_to_tm_test_date_range()
|
/third_party/musl/porting/liteos_a/kernel/src/time/ |
H A D | __tz.c | 138 int days = d - wday; in rule_to_secs() local 139 if (days < 0) days += 7; in rule_to_secs() 140 if (n == 5 && days+28 >= days_in_month(m, is_leap)) n = 4; in rule_to_secs() 141 t += 86400 * (days + 7*(n-1)); in rule_to_secs()
|
/third_party/musl/porting/uniproton/kernel/src/time/ |
H A D | __tz.c | 144 int days = d - wday; in rule_to_secs() local 145 if (days < 0) days += 7; in rule_to_secs() 146 if (n == 5 && days+28 >= days_in_month(m, is_leap)) n = 4; in rule_to_secs() 147 t += 86400 * (days + 7*(n-1)); in rule_to_secs()
|
/third_party/musl/porting/liteos_m/kernel/src/time/ |
H A D | __tz.c | 144 int days = d - wday; in rule_to_secs() local 145 if (days < 0) days += 7; in rule_to_secs() 146 if (n == 5 && days+28 >= days_in_month(m, is_leap)) n = 4; in rule_to_secs() 147 t += 86400 * (days + 7*(n-1)); in rule_to_secs()
|
/third_party/python/Lib/test/ |
H A D | test_calendar.py | 614 days = list(cal.itermonthdays4(2001, 2)) 615 self.assertEqual(days[0], (2001, 2, 1, 3)) 616 self.assertEqual(days[-1], (2001, 2, 28, 2)) 623 days = list(cal.itermonthdays(y, m)) 624 self.assertIn(len(days), (35, 42)) 627 days = list(cal.itermonthdays(2001, 2)) 628 self.assertEqual(days, list(range(1, 29))) 635 days = list(cal.itermonthdays2(y, m)) 636 self.assertEqual(days[0][1], firstweekday) 637 self.assertEqual(days[ [all...] |
/third_party/FreeBSD/sys/compat/linuxkpi/common/src/ |
H A D | tzdst.c | 265 /* Not every year have 29 days in Feb when set DST. */ in GetMonthDayFromString() 336 INT64 seconds, days; in DstGetDayOfMonth() local 350 days = seconds / SECSPERDAY; in DstGetDayOfMonth() 351 if (days < 0) { in DstGetDayOfMonth() 352 days = -days; in DstGetDayOfMonth() 353 firstWeekDay = DAYSPERWEEK - (days - (DAYSPERWEEK - FIRST_DAY)) % DAYSPERWEEK; in DstGetDayOfMonth() 355 if (days > FIRST_DAY) { in DstGetDayOfMonth() 356 firstWeekDay = 1 + (days - FIRST_DAY) % DAYSPERWEEK; in DstGetDayOfMonth()
|
/third_party/python/Lib/ |
H A D | datetime.py | 47 "year -> number of days before January 1st of year." 52 "year, month -> number of days in that month in that year." 59 "year, month -> number of days in year preceding first day of month." 72 _DI400Y = _days_before_year(401) # number of days in 400 years 115 # Now n is the (non-negative) offset, in days, from January 1 of year, to 185 if off.days < 0: 230 if offset.days < 0: 481 # Now compute the offset from (Y, 1, 1) in days: 587 Representation: (days, seconds, microseconds). Why? Because I 592 def __new__(cls, days 726 def days(self): global() member in timedelta [all...] |