Home
last modified time | relevance | path

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

1234567891011

/external/v8/src/
Ddate.cc54 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 …]
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/android_icu4j/src/main/tests/android/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/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/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/s3/
Dlifecycle.py53 self.expiration = Expiration(days=expiration)
103 def __init__(self, days=None, date=None): argument
104 self.days = days
112 self.days = int(value)
117 if self.days is None:
120 how_long = "in: %s days" % self.days
125 if self.days is not None:
126 s += '<Days>%s</Days>' % self.days
145 def __init__(self, days=None, date=None, storage_class=None): argument
146 self.days = days
[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/chromium-trace/catapult/third_party/pipeline/pipeline/ui/
Djquery.timeago.js39 days: "%d days", property
62 var days = hours / 24;
63 var years = days / 365;
77 days < 30 && substitute($l.days, Math.floor(days)) ||
78 days < 60 && substitute($l.month, 1) ||
79 days < 365 && substitute($l.months, Math.floor(days / 30)) ||
/external/chromium-trace/catapult/catapult_build/perfbot_stats/
Dchrome_perf_stats.py40 days = None
51 days = range(1, calendar.monthrange(year, month)[1] + 1)
57 days = [day]
62 yesterday = datetime.date.today() - datetime.timedelta(days=1)
65 days = [yesterday.day]
69 success_rates = CalculateSuccessRates(year, month, days, builders)
138 def CalculateSuccessRates(year, month, days, builders): argument
140 for day in days:
/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/android_icu4j/src/main/java/android/icu/util/
DIslamicCalendar.java801 long days = julianDay - CIVIL_EPOC; in handleComputeFields() local
805 days = julianDay - ASTRONOMICAL_EPOC; in handleComputeFields()
808 year = (int)Math.floor( (30 * days + 10646) / 10631.0 ); in handleComputeFields()
809 month = (int)Math.ceil((days - 29 - yearStart(year)) / 29.5 ); in handleComputeFields()
813 int months = (int)Math.floor(days / CalendarAstronomer.SYNODIC_MONTH); in handleComputeFields()
817 if ( days - monthStart >= 25 && moonAge(internalGetTimeInMillis()) > 0) { in handleComputeFields()
824 while ((monthStart = trueMonthStart(months)) > days) { in handleComputeFields()
833 if( days < umalquraStartdays) { in handleComputeFields()
835 year = (int)Math.floor( (30 * days + 10646) / 10631.0 ); in handleComputeFields()
836 month = (int)Math.ceil((days - 29 - yearStart(year)) / 29.5 ); in handleComputeFields()
[all …]
DChineseCalendar.java653 private final long daysToMillis(int days) { in daysToMillis() argument
654 long millis = days * ONE_DAY; in daysToMillis()
710 private int newMoonNear(int days, boolean after) { in newMoonNear() argument
712 astro.setTime(daysToMillis(days)); in newMoonNear()
735 private int majorSolarTerm(int days) { in majorSolarTerm() argument
737 astro.setTime(daysToMillis(days)); in majorSolarTerm()
832 private void computeChineseFields(int days, int gyear, int gmonth, in computeChineseFields() argument
841 if (days < solsticeAfter) { in computeChineseFields()
853 int thisMoon = newMoonNear(days + 1, false); // Start of this month in computeChineseFields()
882 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,
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DIslamicCalendar.java829 long days = julianDay - CIVIL_EPOC; in handleComputeFields() local
833 days = julianDay - ASTRONOMICAL_EPOC; in handleComputeFields()
836 year = (int)Math.floor( (30 * days + 10646) / 10631.0 ); in handleComputeFields()
837 month = (int)Math.ceil((days - 29 - yearStart(year)) / 29.5 ); in handleComputeFields()
841 int months = (int)Math.floor(days / CalendarAstronomer.SYNODIC_MONTH); in handleComputeFields()
845 if ( days - monthStart >= 25 && moonAge(internalGetTimeInMillis()) > 0) { in handleComputeFields()
852 while ((monthStart = trueMonthStart(months)) > days) { in handleComputeFields()
861 if( days < umalquraStartdays) { in handleComputeFields()
863 year = (int)Math.floor( (30 * days + 10646) / 10631.0 ); in handleComputeFields()
864 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/chromium-trace/catapult/dashboard/dashboard/
Dmain.py37 days = int(self.request.get('days', _DEFAULT_DAYS_TO_SHOW))
42 anomalies = _GetRecentAnomalies(days, sheriff)
49 'num_days': days,
58 def _GetRecentAnomalies(days, sheriff): argument
68 oldest_time = datetime.datetime.now() - datetime.timedelta(days=days)
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/integration/s3/
Dtest_bucket.py220 transition = Transition(days=30, storage_class='GLACIER')
227 self.assertEqual(transition.days, 30)
236 lifecycle.add_rule("2", "2/", "Enabled", Expiration(days=2))
239 Transition(days=4, storage_class=sc))
249 self.assertEqual(rule.expiration.days, 1)
252 self.assertEqual(rule.expiration.days, 2)
258 self.assertEqual(rule.transition.days, 4)
271 days = 30
273 lifecycle.add_rule(name, prefix, "Enabled", days)
280 self.assertEqual(rule.expiration.days, days)
/external/autotest/site_utils/suite_scheduler/
Dtimed_event_unittest.py105 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.
263 self.doTestGetBranchBuilds(days=1)
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.
[all …]
/external/autotest/site_utils/
Dcount_jobs_unittest.py37 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/chromium-trace/catapult/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/v8/test/cctest/
Dtest-date.cc46 int days = DaysFromTime(time_sec * 1000); in GetDaylightSavingsOffsetFromOS() local
47 int time_in_day_sec = TimeInDay(time_sec * 1000, days) / 1000; in GetDaylightSavingsOffsetFromOS()
49 YearMonthDayFromDays(days, &year, &month, &day); in GetDaylightSavingsOffsetFromOS()
90 int days = DaysFromYearMonth(year, month); in ComputeRuleDay() local
92 while (Weekday(days + day) != 6) day++; in ComputeRuleDay()
/external/tcpdump/
Dprint-chdlc.c140 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/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/s3/
Dtest_lifecycle.py68 self.assertEqual(rule.expiration.days, 365)
71 self.assertEqual(transition.days, 30)
82 t = Transition(days=30, storage_class='GLACIER')
/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()

1234567891011