/external/v8/src/ |
D | date.cc | 56 int days, int* year, int* month, int* day) { in YearMonthDayFromDays() argument 60 int new_day = ymd_day_ + (days - ymd_days_); in YearMonthDayFromDays() 63 ymd_days_ = days; in YearMonthDayFromDays() 70 int save_days = days; in YearMonthDayFromDays() 72 days += kDaysOffset; in YearMonthDayFromDays() 73 *year = 400 * (days / kDaysIn400Years) - kYearsOffset; in YearMonthDayFromDays() 74 days %= kDaysIn400Years; in YearMonthDayFromDays() 76 DCHECK(DaysFromYearMonth(*year, 0) + days == save_days); in YearMonthDayFromDays() 78 days--; in YearMonthDayFromDays() 79 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/icu4c/source/samples/cal/ |
D | cal.c | 58 UChar *days [], UBool useLongNames, 61 static void free_days(UChar *days[]); 71 static void print_days(UChar *days [], FILE *f, UErrorCode *status); 74 UChar *days [], 79 UChar *days [], UChar *months [], 232 UChar *days [DAY_COUNT]; in cal() local 253 print_year(c, days, months, useLongNames, fdow, status); in cal() 269 print_month(c, days, useLongNames, fdow, status); in cal() 334 UChar *days [], in get_days() 347 get_symbols(fmt, dayType, days, DAY_COUNT, 1, fdow, status); in get_days() [all …]
|
/external/toybox/toys/other/ |
D | uptime.c | 28 unsigned int days, hours, minutes; in uptime_main() local 49 days = info.uptime/24; in uptime_main() 50 if (days) xprintf("%d day%s, ", days, (days!=1)?"s":""); in uptime_main()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | IslamicCalendar.java | 834 long days = julianDay - CIVIL_EPOC; in handleComputeFields() local 838 days = julianDay - ASTRONOMICAL_EPOC; in handleComputeFields() 841 year = (int)Math.floor( (30 * days + 10646) / 10631.0 ); in handleComputeFields() 842 month = (int)Math.ceil((days - 29 - yearStart(year)) / 29.5 ); in handleComputeFields() 846 int months = (int)Math.floor(days / CalendarAstronomer.SYNODIC_MONTH); in handleComputeFields() 850 if ( days - monthStart >= 25 && moonAge(internalGetTimeInMillis()) > 0) { in handleComputeFields() 857 while ((monthStart = trueMonthStart(months)) > days) { in handleComputeFields() 866 if( days < umalquraStartdays) { in handleComputeFields() 868 year = (int)Math.floor( (30 * days + 10646) / 10631.0 ); in handleComputeFields() 869 month = (int)Math.ceil((days - 29 - yearStart(year)) / 29.5 ); in handleComputeFields() [all …]
|
D | ChineseCalendar.java | 671 private final long daysToMillis(int days) { in daysToMillis() argument 672 long millis = days * ONE_DAY; in daysToMillis() 728 private int newMoonNear(int days, boolean after) { in newMoonNear() argument 730 astro.setTime(daysToMillis(days)); in newMoonNear() 753 private int majorSolarTerm(int days) { in majorSolarTerm() argument 755 astro.setTime(daysToMillis(days)); in majorSolarTerm() 851 private void computeChineseFields(int days, int gyear, int gmonth, in computeChineseFields() argument 860 if (days < solsticeAfter) { in computeChineseFields() 872 int thisMoon = newMoonNear(days + 1, false); // Start of this month in computeChineseFields() 901 int dayOfMonth = days - thisMoon + 1; in computeChineseFields() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | islamcal.cpp | 608 int32_t days = julianDay - CIVIL_EPOC; in handleComputeFields() local 612 days = julianDay - ASTRONOMICAL_EPOC; in handleComputeFields() 615 year = (int)ClockMath::floorDivide( (double)(30 * days + 10646) , 10631.0 ); in handleComputeFields() 616 month = (int32_t)uprv_ceil((days - 29 - yearStart(year)) / 29.5 ); in handleComputeFields() 621 int32_t months = (int32_t)uprv_floor((double)days / CalendarAstronomer::SYNODIC_MONTH); in handleComputeFields() 630 if ( days - startDate >= 25 && age > 0) { in handleComputeFields() 637 while ((startDate = trueMonthStart(months)) > days) { in handleComputeFields() 646 if( days < umalquraStartdays){ in handleComputeFields() 648 year = (int)ClockMath::floorDivide( (double)(30 * days + 10646) , 10631.0 ); in handleComputeFields() 649 month = (int32_t)uprv_ceil((days - 29 - yearStart(year)) / 29.5 ); in handleComputeFields() [all …]
|
D | chnsecal.cpp | 481 double ChineseCalendar::daysToMillis(double days) const { in daysToMillis() 482 double millis = days * (double)kOneDay; in daysToMillis() 564 int32_t ChineseCalendar::newMoonNear(double days, UBool after) const { in newMoonNear() argument 571 gChineseCalendarAstro->setTime(daysToMillis(days)); in newMoonNear() 596 int32_t ChineseCalendar::majorSolarTerm(int32_t days) const { in majorSolarTerm() 603 gChineseCalendarAstro->setTime(daysToMillis(days)); in majorSolarTerm() 671 void ChineseCalendar::computeChineseFields(int32_t days, int32_t gyear, int32_t gmonth, in computeChineseFields() argument 680 if (days < solsticeAfter) { in computeChineseFields() 692 int32_t thisMoon = newMoonNear(days + 1, FALSE); // Start of this month in computeChineseFields() 722 int32_t dayOfMonth = days - thisMoon + 1; in computeChineseFields() [all …]
|
D | chnsecal.h | 184 double daysToMillis(double days) const; 187 virtual int32_t newMoonNear(double days, UBool after) const; 189 virtual int32_t majorSolarTerm(int32_t days) const; 192 virtual void computeChineseFields(int32_t days, int32_t gyear,
|
D | utmscale.c | 20 #define days (hours * 24) macro 32 …{days, INT64_C(693594), INT64_C(-11368793), INT64_C(9981605), … 33 …{days, INT64_C(693594), INT64_C(-11368793), INT64_C(9981605), …
|
/external/chromium-trace/trace-viewer/third_party/WebOb/webob/ |
D | datetime_utils.py | 52 return td.seconds + (td.days*24*60*60) 54 day = timedelta(days=1) 60 month = timedelta(days=30) 61 year = timedelta(days=365)
|
/external/lldb/test/pexpect-2.4/examples/ |
D | uptime.py | 40 days = '0' variable 45 days = str(int(p.match.group(1))) variable 56 print '%s, %s, %s, %s, %s, %s, %s' % (days, hours, mins, users, av1, av5, av15)
|
/external/tcpdump/ |
D | print-chdlc.c | 149 u_int sec,min,hrs,days; in chdlc_slarp_print() local 188 days = hrs / 24; hrs -= days * 24; in chdlc_slarp_print() 189 printf(", link uptime=%ud%uh%um%us",days,hrs,min,sec); in chdlc_slarp_print()
|
/external/v8/test/cctest/ |
D | test-date.cc | 47 int days = DaysFromTime(time_sec * 1000); in GetDaylightSavingsOffsetFromOS() local 48 int time_in_day_sec = TimeInDay(time_sec * 1000, days) / 1000; in GetDaylightSavingsOffsetFromOS() 50 YearMonthDayFromDays(days, &year, &month, &day); in GetDaylightSavingsOffsetFromOS() 91 int days = DaysFromYearMonth(year, month); in ComputeRuleDay() local 93 while (Weekday(days + day) != 6) day++; in ComputeRuleDay()
|
/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/lldb/test/lang/c/enum_types/ |
D | main.c | 13 enum days { in main() enum 23 enum days day; in main()
|
/external/lldb/test/functionalities/target_command/ |
D | c.c | 13 enum days { in main() enum 23 enum days day; in main()
|
/external/libvncserver/webclients/novnc/include/ |
D | webutil.js | 89 WebUtil.createCookie = function(name,value,days) { argument 91 if (days) { 93 date.setTime(date.getTime()+(days*24*60*60*1000));
|
/external/boringssl/src/crypto/x509/ |
D | x509_r2x.c | 67 X509 *X509_REQ_to_X509(X509_REQ *r, int days, EVP_PKEY *pkey) in X509_REQ_to_X509() argument 98 if (X509_gmtime_adj(xi->validity->notAfter,(long)60*60*24*days) == NULL) in X509_REQ_to_X509()
|
/external/chromium-trace/trace-viewer/third_party/Paste/paste/util/ |
D | datetimeutil.py | 177 _one_day = timedelta(days=1) 234 days = int(item) 238 now += timedelta(days=days)
|
/external/toybox/toys/pending/ |
D | last.c | 74 unsigned days, hours, mins; in seize_duration() local 81 days = (mins = diff/60)/(24*60); in seize_duration() 84 sprintf(toybuf+28, "(%u+%02u:%02u)", days, hours, mins); // Duration. in seize_duration()
|
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/scripts_cvs/searchcvs/www/projectName/ |
D | searchcvs.php | 9 $days = 7; variable 13 $where = "WHERE `date` >= DATE_SUB(CURDATE(), INTERVAL $days DAY)"; 78 …ows ? $rows : $offset + $pagesize) . " for " . ($_GET["q"] == "" ? "last $days days of commits" : …
|
/external/google-tv-pairing-protocol/cpp/src/polo/util/ |
D | certificateutil.cc | 88 uint32_t days) { in GenerateSelfSignedCert() argument 93 X509_gmtime_adj(X509_get_notAfter(x509), (int64_t) 60 * 60 * 24 * days); in GenerateSelfSignedCert()
|