Home
last modified time | relevance | path

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

12345678910>>...16

/external/python/dateutil/dateutil/test/
Dtest_relativedelta.py21 ccRD = rdChildClass(years=1, months=1, days=1, leapdays=1, weeks=1,
24 rd = relativedelta(years=1, months=1, days=1, leapdays=1, weeks=1,
76 relativedelta(months=+1, days=+7, hours=+10))
125 self.assertEqual(self.today+relativedelta(days=+1, weekday=WE),
135 relativedelta(years=+2, months=+8, days=+16,
142 relativedelta(years=+25, months=+5, days=+12,
149 relativedelta(years=+25, months=+5, days=+11,
178 self.assertEqual(relativedelta(days=10) +
179 relativedelta(years=1, months=2, days=3, hours=4,
181 relativedelta(years=1, months=2, days=13, hours=4,
[all …]
/external/python/cpython2/Demo/scripts/
Dunbirthday.py61 days = todaydate - bdaydate
62 print 'You have lived', days, 'days'
76 print nth(days - age), 'unbirthday'
91 days = year*365 # years, roughly
92 days = days + (year+3)//4 # plus leap years, roughly
93 days = days - (year+99)//100 # minus non-leap years every century
94 days = days + (year+399)//400 # plus leap years every 4 centirues
97 days = days + 29
99 days = days + calendar.mdays[i]
100 days = days + day
[all …]
/external/v8/src/
Ddate.cc86 int days, int* year, int* month, int* day) { in YearMonthDayFromDays() argument
90 int new_day = ymd_day_ + (days - ymd_days_); in YearMonthDayFromDays()
93 ymd_days_ = days; in YearMonthDayFromDays()
100 int save_days = days; in YearMonthDayFromDays()
102 days += kDaysOffset; in YearMonthDayFromDays()
103 *year = 400 * (days / kDaysIn400Years) - kYearsOffset; in YearMonthDayFromDays()
104 days %= kDaysIn400Years; in YearMonthDayFromDays()
106 DCHECK_EQ(save_days, DaysFromYearMonth(*year, 0) + days); in YearMonthDayFromDays()
108 days--; in YearMonthDayFromDays()
109 int yd1 = days / kDaysIn100Years; in YearMonthDayFromDays()
[all …]
Ddate.h61 static int TimeInDay(int64_t time_ms, int days) { in TimeInDay() argument
62 return static_cast<int>(time_ms - days * kMsPerDay); in TimeInDay()
70 int Weekday(int days) { in Weekday() argument
71 int result = (days + 4) % 7; in Weekday()
127 int days = DaysFromTime(time_ms); in EquivalentTime() local
128 int time_within_day_ms = static_cast<int>(time_ms - days * kMsPerDay); in EquivalentTime()
130 YearMonthDayFromDays(days, &year, &month, &day); in EquivalentTime()
149 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/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/u-boot/include/linux/
Dtime.h84 long days, rem; member
89 days = ((long) *tim_p) / SECSPERDAY;
94 --days;
104 if ((res->tm_wday = ((EPOCH_WDAY + days) % DAYSPERWEEK)) < 0)
109 if (days >= 0)
114 if (days < year_lengths[yleap])
117 days -= year_lengths[yleap];
126 days += year_lengths[yleap];
127 } while (days < 0);
131 res->tm_yday = days;
[all …]
/external/python/dateutil/dateutil/
Drelativedelta.py92 years=0, months=0, days=0, leapdays=0, weeks=0, argument
115 self.days = 0
154 self.seconds = delta.seconds + delta.days * 86400
165 self.days = days + weeks * 7
237 self.days += div * s
252 return int(self.days / 7.0)
256 self.days = self.days - (self.weeks * 7) + value * 7
280 days = int(self.days)
282 hours_f = round(self.hours + 24 * (self.days - days), 11)
295 days=days, hours=hours, minutes=minutes,
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.members/
Dplus_minus_equal.pass.cpp39 using days = std::chrono::days; in main() typedef
41 ASSERT_NOEXCEPT(std::declval<day&>() += std::declval<days>()); in main()
42 ASSERT_NOEXCEPT(std::declval<day&>() -= std::declval<days>()); in main()
44 ASSERT_SAME_TYPE(day&, decltype(std::declval<day&>() += std::declval<days>())); in main()
45 ASSERT_SAME_TYPE(day&, decltype(std::declval<day&>() -= std::declval<days>())); in main()
47 static_assert(testConstexpr<day, days>(), ""); in main()
52 assert(static_cast<unsigned>(day += days{22}) == i + 22); in main()
54 assert(static_cast<unsigned>(day -= days{12}) == i + 10); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.nonmembers/
Dplus.pass.cpp40 using days = std::chrono::days; in main() typedef
42 ASSERT_NOEXCEPT(std::declval<day>() + std::declval<days>()); in main()
43 ASSERT_NOEXCEPT(std::declval<days>() + std::declval<day>()); in main()
45 ASSERT_SAME_TYPE(day, decltype(std::declval<day>() + std::declval<days>())); in main()
46 ASSERT_SAME_TYPE(day, decltype(std::declval<days>() + std::declval<day>())); in main()
48 static_assert(testConstexpr<day, days>(), ""); in main()
53 day d1 = dy + days{i}; in main()
54 day d2 = days{i} + dy; in main()
Dminus.pass.cpp40 using days = std::chrono::days; in main() typedef
42 ASSERT_NOEXCEPT(std::declval<day>() - std::declval<days>()); in main()
45 ASSERT_SAME_TYPE(day, decltype(std::declval<day>() - std::declval<days>())); in main()
46 ASSERT_SAME_TYPE(days, decltype(std::declval<day>() - std::declval<day>())); in main()
48 static_assert(testConstexpr<day, days>(), ""); in main()
53 day d1 = dy - days{i}; in main()
54 days off = dy - day {i}; in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.nonmembers/
Dplus.pass.cpp51 using days = std::chrono::days; in main() typedef
53 ASSERT_NOEXCEPT( std::declval<weekday>() + std::declval<days>()); in main()
54 ASSERT_SAME_TYPE(weekday, decltype(std::declval<weekday>() + std::declval<days>())); in main()
56 ASSERT_NOEXCEPT( std::declval<days>() + std::declval<weekday>()); in main()
57 ASSERT_SAME_TYPE(weekday, decltype(std::declval<days>() + std::declval<weekday>())); in main()
59 static_assert(testConstexpr<weekday, days>(), ""); in main()
64 weekday wd1 = weekday{i} + days{j}; in main()
65 weekday wd2 = days{j} + weekday{i}; in main()
Dminus.pass.cpp51 using days = std::chrono::days; in main() typedef
53 ASSERT_NOEXCEPT( std::declval<weekday>() - std::declval<days>()); in main()
54 ASSERT_SAME_TYPE(weekday, decltype(std::declval<weekday>() - std::declval<days>())); in main()
57 ASSERT_SAME_TYPE(days, decltype(std::declval<weekday>() - std::declval<weekday>())); in main()
59 static_assert(testConstexpr<weekday, days>(), ""); in main()
64 weekday wd = weekday{i} - days{j}; in main()
65 assert(wd + days{j} == weekday{i}); in main()
72 days d = weekday{j} - weekday{i}; in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/
Dplus_minus_equal.pass.cpp40 using days = std::chrono::days; in main() typedef
42 ASSERT_NOEXCEPT( std::declval<weekday&>() += std::declval<days&>()); in main()
43 ASSERT_SAME_TYPE(weekday&, decltype(std::declval<weekday&>() += std::declval<days&>())); in main()
45 ASSERT_NOEXCEPT( std::declval<weekday&>() -= std::declval<days&>()); in main()
46 ASSERT_SAME_TYPE(weekday&, decltype(std::declval<weekday&>() -= std::declval<days&>())); in main()
48 static_assert(testConstexpr<weekday, days>(), ""); in main()
53 assert((static_cast<unsigned>(wd += days{3}) == euclidian_addition<unsigned, 0, 6>(i, 3))); in main()
60 … assert((static_cast<unsigned>(wd -= days{4}) == euclidian_subtraction<unsigned, 0, 6>(i, 4))); in main()
/external/toybox/toys/other/
Duptime.c31 unsigned int days, hours, minutes; in uptime_main() local
55 days = info.uptime/24; in uptime_main()
58 int weeks = days/7; in uptime_main()
59 days %= 7; in uptime_main()
63 days, (days!=1)?"s":"", in uptime_main()
70 if (days) xprintf("%d day%s, ", days, (days!=1)?"s":""); in uptime_main()
/external/u-boot/drivers/rtc/
Dmcfrtc.c32 rtc_days = rtc->days; in rtc_get()
61 int days, i, months; in rtc_set() local
74 for (i = STARTOFTIME, days = 0; i < tmp->tm_year; i++) { in rtc_set()
75 days += 365 + isleap(i); in rtc_set()
81 days += month_days[i]; in rtc_set()
84 days += isleap(i); in rtc_set()
87 days += tmp->tm_mday - 1; in rtc_set()
89 rtc->days = days; in rtc_set()
/external/icu/icu4c/source/samples/cal/
Dcal.c62 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/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/
Dop_local_days.pass.cpp29 using days = std::chrono::days; in main() typedef
38 static_assert(sd.time_since_epoch() == days{30}, ""); in main()
45 static_assert(sd.time_since_epoch() == days{10957+30}, ""); in main()
52 static_assert(sd.time_since_epoch() == days{-10957+29}, ""); in main()
59 assert(sd.time_since_epoch() == days{-(10957+33)}); in main()
Dop_sys_days.pass.cpp29 using days = std::chrono::days; in main() typedef
38 static_assert(sd.time_since_epoch() == days{30}, ""); in main()
45 static_assert(sd.time_since_epoch() == days{10957+30}, ""); in main()
52 static_assert(sd.time_since_epoch() == days{-10957+29}, ""); in main()
59 assert(sd.time_since_epoch() == days{-(10957+33)}); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/
Dop_local_days.pass.cpp29 using days = std::chrono::days; in main() typedef
38 static_assert(sd.time_since_epoch() == days{30}, ""); in main()
45 static_assert(sd.time_since_epoch() == days{10957+30}, ""); in main()
52 static_assert(sd.time_since_epoch() == days{-10957+29}, ""); in main()
59 assert(sd.time_since_epoch() == days{-(10957+33)}); in main()
Dop_sys_days.pass.cpp32 using days = std::chrono::days; in main() typedef
46 static_assert(sd.time_since_epoch() == days{26}, ""); in main()
53 static_assert(sd.time_since_epoch() == days{10957+24}, ""); in main()
60 static_assert(sd.time_since_epoch() == days{-10958+29}, ""); in main()
67 assert(sd.time_since_epoch() == days{-(10957+35)}); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/
Dop.sys_days.pass.cpp35 using days = std::chrono::days; in main() typedef
44 static_assert( sd.time_since_epoch() == days{0}, ""); in main()
52 static_assert( sd.time_since_epoch() == days{10957+32}, ""); in main()
62 static_assert( sd.time_since_epoch() == days{-10957}, ""); in main()
70 assert( sd.time_since_epoch() == days{-(10957+34)}); in main()
Dop.local_days.pass.cpp35 using days = std::chrono::days; in main() typedef
44 static_assert( sd.time_since_epoch() == days{0}, ""); in main()
52 static_assert( sd.time_since_epoch() == days{10957+32}, ""); in main()
62 static_assert( sd.time_since_epoch() == days{-10957}, ""); in main()
70 assert( sd.time_since_epoch() == days{-(10957+34)}); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/
Dop.local_days.pass.cpp54 using days = std::chrono::days; in main() typedef
64 static_assert( sd.time_since_epoch() == days{0}, ""); in main()
72 static_assert( sd.time_since_epoch() == days{10957+32}, ""); in main()
82 static_assert( sd.time_since_epoch() == days{-10957}, ""); in main()
90 assert( sd.time_since_epoch() == days{-(10957+34)}); in main()
Dop.sys_days.pass.cpp54 using days = std::chrono::days; in main() typedef
64 static_assert( sd.time_since_epoch() == days{0}, ""); in main()
72 static_assert( sd.time_since_epoch() == days{10957+32}, ""); in main()
82 static_assert( sd.time_since_epoch() == days{-10957}, ""); in main()
90 assert( sd.time_since_epoch() == days{-(10957+34)}); in main()

12345678910>>...16