Home
last modified time | relevance | path

Searched refs:days (Results 1 – 25 of 170) sorted by relevance

1234567

/external/v8/src/
Ddate.cc56 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 …]
Ddate.h65 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/
Dtestdata_en.txt67 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/
Dcal.c58 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/
Duptime.c28 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/
DIslamicCalendar.java834 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 …]
DChineseCalendar.java671 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/
Dislamcal.cpp608 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 …]
Dchnsecal.cpp481 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 …]
Dchnsecal.h184 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,
Dutmscale.c20 #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/
Ddatetime_utils.py52 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/
Duptime.py40 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/
Dprint-chdlc.c149 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/
Dtest-date.cc47 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/
DTimeUtilities.java87 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/
Dsetup.sh107 …$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/
Dmain.c13 enum days { in main() enum
23 enum days day; in main()
/external/lldb/test/functionalities/target_command/
Dc.c13 enum days { in main() enum
23 enum days day; in main()
/external/libvncserver/webclients/novnc/include/
Dwebutil.js89 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/
Dx509_r2x.c67 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/
Ddatetimeutil.py177 _one_day = timedelta(days=1)
234 days = int(item)
238 now += timedelta(days=days)
/external/toybox/toys/pending/
Dlast.c74 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/
Dsearchcvs.php9 $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/
Dcertificateutil.cc88 uint32_t days) { in GenerateSelfSignedCert() argument
93 X509_gmtime_adj(X509_get_notAfter(x509), (int64_t) 60 * 60 * 24 * days); in GenerateSelfSignedCert()

1234567