/external/v8/src/ |
D | date.cc | 54 int days, int* year, int* month, int* day) { in YearMonthDayFromDays() argument 58 int new_day = ymd_day_ + (days - ymd_days_); in YearMonthDayFromDays() 61 ymd_days_ = days; in YearMonthDayFromDays() 68 int save_days = days; in YearMonthDayFromDays() 70 days += kDaysOffset; in YearMonthDayFromDays() 71 *year = 400 * (days / kDaysIn400Years) - kYearsOffset; in YearMonthDayFromDays() 72 days %= kDaysIn400Years; in YearMonthDayFromDays() 74 DCHECK_EQ(save_days, DaysFromYearMonth(*year, 0) + days); in YearMonthDayFromDays() 76 days--; in YearMonthDayFromDays() 77 int yd1 = days / kDaysIn100Years; in YearMonthDayFromDays() [all …]
|
D | date.h | 65 static int TimeInDay(int64_t time_ms, int days) { in TimeInDay() argument 66 return static_cast<int>(time_ms - days * kMsPerDay); in TimeInDay() 72 int Weekday(int days) { in Weekday() argument 73 int result = (days + 4) % 7; in Weekday() 165 int days = DaysFromTime(time_ms); in EquivalentTime() local 166 int time_within_day_ms = static_cast<int>(time_ms - days * kMsPerDay); in EquivalentTime() 168 YearMonthDayFromDays(days, &year, &month, &day); in EquivalentTime() 187 void YearMonthDayFromDays(int days, int* year, int* month, int* day);
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/testdata/ |
D | testdata_en.txt | 67 3 days ago 68 2 days ago 70 0 days 72 2 days from now 73 3 days from now 74 5 days from now 75 10 days from now 76 11 days from now 77 12 days from now 78 20 days from now [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/testdata/ |
D | testdata_en.txt | 67 3 days ago 68 2 days ago 70 0 days 72 2 days from now 73 3 days from now 74 5 days from now 75 10 days from now 76 11 days from now 77 12 days from now 78 20 days from now [all …]
|
/external/icu/icu4c/source/samples/cal/ |
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 [], 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() 338 UChar *days [], in get_days() 351 get_symbols(fmt, dayType, days, DAY_COUNT, 1, fdow, status); in get_days() [all …]
|
/external/toybox/toys/other/ |
D | uptime.c | 30 unsigned int days, hours, minutes; in uptime_main() local 60 days = info.uptime/24; in uptime_main() 61 if (days) xprintf("%d day%s, ", days, (days!=1)?"s":""); in uptime_main()
|
/external/icu/icu4c/source/i18n/ |
D | islamcal.cpp | 610 int32_t days = julianDay - CIVIL_EPOC; in handleComputeFields() local 614 days = julianDay - ASTRONOMICAL_EPOC; in handleComputeFields() 617 year = (int)ClockMath::floorDivide( (double)(30 * days + 10646) , 10631.0 ); in handleComputeFields() 618 month = (int32_t)uprv_ceil((days - 29 - yearStart(year)) / 29.5 ); in handleComputeFields() 623 int32_t months = (int32_t)uprv_floor((double)days / CalendarAstronomer::SYNODIC_MONTH); in handleComputeFields() 632 if ( days - startDate >= 25 && age > 0) { in handleComputeFields() 639 while ((startDate = trueMonthStart(months)) > days) { in handleComputeFields() 648 if( days < umalquraStartdays){ in handleComputeFields() 650 year = (int)ClockMath::floorDivide( (double)(30 * days + 10646) , 10631.0 ); in handleComputeFields() 651 month = (int32_t)uprv_ceil((days - 29 - yearStart(year)) / 29.5 ); in handleComputeFields() [all …]
|
D | chnsecal.cpp | 483 double ChineseCalendar::daysToMillis(double days) const { in daysToMillis() 484 double millis = days * (double)kOneDay; in daysToMillis() 566 int32_t ChineseCalendar::newMoonNear(double days, UBool after) const { in newMoonNear() argument 573 gChineseCalendarAstro->setTime(daysToMillis(days)); in newMoonNear() 598 int32_t ChineseCalendar::majorSolarTerm(int32_t days) const { in majorSolarTerm() 605 gChineseCalendarAstro->setTime(daysToMillis(days)); in majorSolarTerm() 673 void ChineseCalendar::computeChineseFields(int32_t days, int32_t gyear, int32_t gmonth, in computeChineseFields() argument 682 if (days < solsticeAfter) { in computeChineseFields() 694 int32_t thisMoon = newMoonNear(days + 1, FALSE); // Start of this month in computeChineseFields() 724 int32_t dayOfMonth = days - thisMoon + 1; in computeChineseFields() [all …]
|
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,
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | IslamicCalendar.java | 814 long days = julianDay - CIVIL_EPOC; in handleComputeFields() local 818 days = julianDay - ASTRONOMICAL_EPOC; in handleComputeFields() 821 year = (int)Math.floor( (30 * days + 10646) / 10631.0 ); in handleComputeFields() 822 month = (int)Math.ceil((days - 29 - yearStart(year)) / 29.5 ); in handleComputeFields() 826 int months = (int)Math.floor(days / CalendarAstronomer.SYNODIC_MONTH); in handleComputeFields() 830 if ( days - monthStart >= 25 && moonAge(internalGetTimeInMillis()) > 0) { in handleComputeFields() 837 while ((monthStart = trueMonthStart(months)) > days) { in handleComputeFields() 846 if( days < umalquraStartdays) { in handleComputeFields() 848 year = (int)Math.floor( (30 * days + 10646) / 10631.0 ); in handleComputeFields() 849 month = (int)Math.ceil((days - 29 - yearStart(year)) / 29.5 ); in handleComputeFields() [all …]
|
D | ChineseCalendar.java | 655 private final long daysToMillis(int days) { in daysToMillis() argument 656 long millis = days * ONE_DAY; in daysToMillis() 712 private int newMoonNear(int days, boolean after) { in newMoonNear() argument 714 astro.setTime(daysToMillis(days)); in newMoonNear() 737 private int majorSolarTerm(int days) { in majorSolarTerm() argument 739 astro.setTime(daysToMillis(days)); in majorSolarTerm() 834 private void computeChineseFields(int days, int gyear, int gmonth, in computeChineseFields() argument 843 if (days < solsticeAfter) { in computeChineseFields() 855 int thisMoon = newMoonNear(days + 1, false); // Start of this month in computeChineseFields() 884 int dayOfMonth = days - thisMoon + 1; in computeChineseFields() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | IslamicCalendar.java | 847 long days = julianDay - CIVIL_EPOC; in handleComputeFields() local 851 days = julianDay - ASTRONOMICAL_EPOC; in handleComputeFields() 854 year = (int)Math.floor( (30 * days + 10646) / 10631.0 ); in handleComputeFields() 855 month = (int)Math.ceil((days - 29 - yearStart(year)) / 29.5 ); in handleComputeFields() 859 int months = (int)Math.floor(days / CalendarAstronomer.SYNODIC_MONTH); in handleComputeFields() 863 if ( days - monthStart >= 25 && moonAge(internalGetTimeInMillis()) > 0) { in handleComputeFields() 870 while ((monthStart = trueMonthStart(months)) > days) { in handleComputeFields() 879 if( days < umalquraStartdays) { in handleComputeFields() 881 year = (int)Math.floor( (30 * days + 10646) / 10631.0 ); in handleComputeFields() 882 month = (int)Math.ceil((days - 29 - yearStart(year)) / 29.5 ); in handleComputeFields() [all …]
|
D | ChineseCalendar.java | 673 private final long daysToMillis(int days) { in daysToMillis() argument 674 long millis = days * ONE_DAY; in daysToMillis() 730 private int newMoonNear(int days, boolean after) { in newMoonNear() argument 732 astro.setTime(daysToMillis(days)); in newMoonNear() 755 private int majorSolarTerm(int days) { in majorSolarTerm() argument 757 astro.setTime(daysToMillis(days)); in majorSolarTerm() 853 private void computeChineseFields(int days, int gyear, int gmonth, in computeChineseFields() argument 862 if (days < solsticeAfter) { in computeChineseFields() 874 int thisMoon = newMoonNear(days + 1, false); // Start of this month in computeChineseFields() 903 int dayOfMonth = days - thisMoon + 1; in computeChineseFields() [all …]
|
/external/autotest/site_utils/ |
D | count_jobs_unittest.py | 37 count_jobs.number_of_jobs_since(timedelta(days=999))) 55 for count, days in ((i, 1), (0, 0), (0, -1)): 58 count_jobs.number_of_jobs_since(timedelta(days=days)))
|
/external/autotest/site_utils/suite_scheduler/ |
D | timed_event_unittest.py | 105 fake_now += datetime.timedelta(days=days_to_jump, hours=hours_to_jump) 111 def doTestGetBranchBuilds(self, days): argument 115 since_date = self.BaseTime() - datetime.timedelta(days=days) 209 new._deadline += datetime.timedelta(days=1) 227 fake_now += datetime.timedelta(days=1) # Jump to tomorrow night. 335 new._deadline += datetime.timedelta(days=7) 344 fake_now = self.BaseTime() + datetime.timedelta(days=0.5) 353 fake_now += datetime.timedelta(days=1) # Jump to tomorrow. 360 fake_now += datetime.timedelta(days=7) # Jump to next week. 367 return now - datetime.timedelta(days=0.5) [all …]
|
/external/syslinux/gpxe/src/arch/i386/interface/pcbios/ |
D | bios_timer.c | 41 static int days = 0; in bios_currticks() local 57 days += 0x1800b0; in bios_currticks() 60 return ( days + ticks ); in bios_currticks()
|
/external/pdfium/fpdfsdk/ |
D | cpdfsdk_datetime.cpp | 322 CPDFSDK_DateTime& CPDFSDK_DateTime::AddDays(short days) { in AddDays() argument 323 if (days == 0) in AddDays() 330 int ldays = days; in AddDays() 393 int days; in AddSeconds() local 397 days = (n - 86399) / 86400; in AddSeconds() 398 n -= days * 86400; in AddSeconds() 400 days = n / 86400; in AddSeconds() 408 if (days != 0) in AddSeconds() 409 AddDays(days); in AddSeconds()
|
/external/v8/src/builtins/ |
D | builtins-date.cc | 368 int const days = isolate->date_cache()->DaysFromTime(local_time_ms); in BUILTIN() local 369 int time_within_day = isolate->date_cache()->TimeInDay(local_time_ms, days); in BUILTIN() 371 isolate->date_cache()->YearMonthDayFromDays(days, &year, &month, &day); in BUILTIN() 389 int const days = isolate->date_cache()->DaysFromTime(local_time_ms); in BUILTIN() local 390 time_within_day = isolate->date_cache()->TimeInDay(local_time_ms, days); in BUILTIN() 392 isolate->date_cache()->YearMonthDayFromDays(days, &year, &month, &day); in BUILTIN() 510 int days = isolate->date_cache()->DaysFromTime(local_time_ms); in BUILTIN() local 511 int time_within_day = isolate->date_cache()->TimeInDay(local_time_ms, days); in BUILTIN() 513 isolate->date_cache()->YearMonthDayFromDays(days, &year, &unused, &day); in BUILTIN() 570 int const days = isolate->date_cache()->DaysFromTime(time_ms); in BUILTIN() local [all …]
|
/external/tcpdump/ |
D | print-chdlc.c | 140 u_int sec,min,hrs,days; in chdlc_slarp_print() local 178 days = hrs / 24; hrs -= days * 24; in chdlc_slarp_print() 179 ND_PRINT((ndo, ", link uptime=%ud%uh%um%us",days,hrs,min,sec)); in chdlc_slarp_print()
|
/external/vogar/src/vogar/util/ |
D | TimeUtilities.java | 87 long days = duration; in nsToString() local 90 if (days != 0) { in nsToString() 91 result.append(days); in nsToString()
|
/external/wpa_supplicant_8/hs20/server/ca/ |
D | setup.sh | 107 …$OPENSSL ca -config openssl.cnf.tmp -md sha256 -create_serial -out rootCA/cacert.pem -days 10957 -… 128 …$OPENSSL ca -config openssl.cnf.tmp -md sha256 -create_serial -out demoCA/cacert.pem -days 3652 -b… 144 …e demoCA/private/cakey.pem -passin pass:$PASS -in ocsp.csr -out ocsp.pem -days 730 -extensions v3_… 152 …tch -md sha256 -in server-revoked.csr -out server-revoked.pem -key $PASS -days 730 -extensions ext… 162 …batch -md sha256 -in server-client.csr -out server-client.pem -key $PASS -days 730 -extensions ext… 170 …/openssl.cnf.tmp -batch -md sha256 -in user.csr -out user.pem -key $PASS -days 730 -extensions ext… 188 …nssl.cnf.tmp -batch -md sha256 -in server.csr -out server.pem -key $PASS -days 730 -extensions ext…
|
/external/toolchain-utils/deprecated/ |
D | sheriff_rotation.py | 38 abs_days = abs(delta_since_epoch.days) - 2 # To get it to start from Sat. 41 week_begin = day - datetime.timedelta(days=day_of_week) 42 week_end = day + datetime.timedelta(days=(6 - day_of_week))
|
/external/toolchain-utils/ |
D | buildbot_test_llvm.py | 150 days = delta.days 152 start_board = (days * TEST_PER_DAY) % len(TEST_BOARD)
|
/external/boringssl/src/crypto/x509/ |
D | x509_r2x.c | 66 X509 *X509_REQ_to_X509(X509_REQ *r, int days, EVP_PKEY *pkey) in X509_REQ_to_X509() argument 101 if (X509_gmtime_adj(xi->validity->notAfter, (long)60 * 60 * 24 * days) == in X509_REQ_to_X509()
|
/external/autotest/server/site_tests/hardware_StorageStress/ |
D | control.soak | 13 Run intensive write/read test at different size for days. 16 The test last 7 days.
|