Home
last modified time | relevance | path

Searched full:days (Results 1 – 25 of 2519) sorted by relevance

12345678910>>...101

/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/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),
143 relativedelta(years=+2, months=+8, days=+16,
150 relativedelta(years=+25, months=+5, days=+12,
157 relativedelta(years=+25, months=+5, days=+11,
186 self.assertEqual(relativedelta(days=10) +
187 relativedelta(years=1, months=2, days=3, hours=4,
189 relativedelta(years=1, months=2, days=13, hours=4,
[all …]
/external/python/cpython2/Demo/scripts/
Dunbirthday.py4 # This is defined as the number of days from your birth until today
42 print 'There are no', day, 'days in that month!'
61 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
[all …]
/external/python/dateutil/dateutil/
Drelativedelta.py45 years, months, weeks, days, hours, minutes, seconds, microseconds:
63 Will add given days to the date found, if year is a leap
67 Set the yearday or the non-leap year day (jump leap days).
106 years=0, months=0, days=0, leapdays=0, weeks=0, argument
129 self.days = 0
150 # time units (seconds, days and microseconds)
168 self.seconds = delta.seconds + delta.days * 86400
179 self.days = days + weeks * 7
251 self.days += div * s
266 return int(self.days / 7.0)
[all …]
/external/MPAndroidChart/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/custom/
DDayAxisValueFormatter.java26 int days = (int) value; in getFormattedValue() local
28 int year = determineYear(days); in getFormattedValue()
30 int month = determineMonth(days); in getFormattedValue()
39 int dayOfMonth = determineDayOfMonth(days, month + 12 * (year - 2016)); in getFormattedValue()
95 int days = 0; in determineMonth() local
97 while (days < dayOfYear) { in determineMonth()
103 int year = determineYear(days); in determineMonth()
104 days += getDaysForMonth(month, year); in determineMonth()
110 private int determineDayOfMonth(int days, int month) { in determineDayOfMonth() argument
122 return days - daysForMonths; in determineDayOfMonth()
[all …]
/external/python/google-api-python-client/docs/dyn/
Dcontent_v2_1.returnpolicy.html125days items can be returned after delivery, where one day is defined to be 24 hours after the deliv…
126days is required for returns. Exceptions may be made for electronics or non-returnable items such …
139days items can be returned after delivery, where one day is defined to be 24 hours after the deliv…
140days is required for returns. Exceptions may be made for electronics or non-returnable items such …
185days items can be returned after delivery, where one day is defined to be 24 hours after the deliv…
186days is required for returns. Exceptions may be made for electronics or non-returnable items such …
199days items can be returned after delivery, where one day is defined to be 24 hours after the deliv…
200days is required for returns. Exceptions may be made for electronics or non-returnable items such …
251days items can be returned after delivery, where one day is defined to be 24 hours after the deliv…
252days is required for returns. Exceptions may be made for electronics or non-returnable items such …
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/time/time.cal/time.cal.weekday/time.cal.weekday.nonmembers/
Dminus.pass.cpp13 // constexpr weekday operator-(const weekday& x, const days& y) noexcept;
16 // constexpr days operator-(const weekday& x, const weekday& y) noexcept;
18 // [days{0}, days{6}] satisfying y + d == x.
20 // [Example: Sunday - Monday == days{6}. -end example]
48 using days = std::chrono::days; in main() typedef
50 ASSERT_NOEXCEPT( std::declval<weekday>() - std::declval<days>()); in main()
51 ASSERT_SAME_TYPE(weekday, decltype(std::declval<weekday>() - std::declval<days>())); in main()
54 ASSERT_SAME_TYPE(days, decltype(std::declval<weekday>() - std::declval<weekday>())); in main()
56 static_assert(testConstexpr<weekday, days>(), ""); in main()
61 weekday wd = weekday{i} - days{j}; in main()
[all …]
Dplus.pass.cpp13 // constexpr weekday operator+(const days& x, const weekday& y) noexcept;
16 // constexpr weekday operator+(const weekday& x, const days& y) noexcept;
24 // [Example: Monday + days{6} == Sunday. -end example]
48 using days = std::chrono::days; in main() typedef
50 ASSERT_NOEXCEPT( std::declval<weekday>() + std::declval<days>()); in main()
51 ASSERT_SAME_TYPE(weekday, decltype(std::declval<weekday>() + std::declval<days>())); in main()
53 ASSERT_NOEXCEPT( std::declval<days>() + std::declval<weekday>()); in main()
54 ASSERT_SAME_TYPE(weekday, decltype(std::declval<days>() + std::declval<weekday>())); in main()
56 static_assert(testConstexpr<weekday, days>(), ""); in main()
61 weekday wd1 = weekday{i} + days{j}; in main()
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.nonmembers/
Dminus.pass.cpp14 // constexpr weekday operator-(const weekday& x, const days& y) noexcept;
17 // constexpr days operator-(const weekday& x, const weekday& y) noexcept;
19 // [days{0}, days{6}] satisfying y + d == x.
21 // [Example: Sunday - Monday == days{6}. —end example]
51 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()
[all …]
Dplus.pass.cpp14 // constexpr weekday operator+(const days& x, const weekday& y) noexcept;
17 // constexpr weekday operator+(const weekday& x, const days& y) noexcept;
25 // [Example: Monday + days{6} == Sunday. —end example]
51 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()
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.nonmembers/
Dminus.pass.cpp14 // constexpr day operator-(const day& x, const days& y) noexcept;
17 // constexpr days operator-(const day& x, const day& y) noexcept;
18 // Returns: days{int(unsigned{x}) - int(unsigned{y}).
40 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()
[all …]
Dplus.pass.cpp14 // constexpr day operator+(const day& x, const days& y) noexcept;
17 // constexpr day operator+(const days& x, const day& y) noexcept;
40 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()
/external/cronet/buildtools/third_party/libc++/trunk/test/std/time/time.cal/time.cal.day/time.cal.day.nonmembers/
Dminus.pass.cpp13 // constexpr day operator-(const day& x, const days& y) noexcept;
16 // constexpr days operator-(const day& x, const day& y) noexcept;
17 // Returns: days{int(unsigned{x}) - int(unsigned{y}).
39 using days = std::chrono::days; in main() typedef
41 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(days, decltype(std::declval<day>() - std::declval<day>())); in main()
47 static_assert(testConstexpr<day, days>(), ""); in main()
52 day d1 = dy - days{i}; in main()
53 days off = dy - day {i}; in main()
[all …]
Dplus.pass.cpp13 // constexpr day operator+(const day& x, const days& y) noexcept;
16 // constexpr day operator+(const days& x, const day& y) noexcept;
39 using days = std::chrono::days; in main() typedef
41 ASSERT_NOEXCEPT(std::declval<day>() + std::declval<days>()); in main()
42 ASSERT_NOEXCEPT(std::declval<days>() + std::declval<day>()); in main()
44 ASSERT_SAME_TYPE(day, decltype(std::declval<day>() + std::declval<days>())); in main()
45 ASSERT_SAME_TYPE(day, decltype(std::declval<days>() + std::declval<day>())); in main()
47 static_assert(testConstexpr<day, days>(), ""); in main()
52 day d1 = dy + days{i}; in main()
53 day d2 = days{i} + dy; in main()
/external/apache-commons-lang/src/main/java/org/apache/commons/lang3/time/
DDurationFormatUtils.java38 * <tr><td>d</td><td>days</td></tr>
91 * <p>This method formats durations using the days and lower fields of the
105 * <p>This method formats durations using the days and lower fields of the
121 * <p>This method formats durations using the days and lower fields of the
135 long days = 0; in formatDuration() local
142 days = milliseconds / DateUtils.MILLIS_PER_DAY; in formatDuration()
143 milliseconds = milliseconds - (days * DateUtils.MILLIS_PER_DAY); in formatDuration()
158 return format(tokens, 0, 0, days, hours, minutes, seconds, milliseconds, padWithZeros); in formatDuration()
164 * <p>This method formats durations using the days and lower fields of the
170 * @return the formatted text in days/hours/minutes/seconds, not null
[all …]
/external/python/httplib2/script/
Dgenerate-tls5 days=3650
38 …openssl req -batch -new -nodes -x509 -days $days -subj "$subj_prefix/CN=$org-CA" -key ca.key -out …
39 …openssl req -batch -new -nodes -x509 -days $days -subj "$subj_prefix/CN=$org-CA-unused" -key ca.ke…
43 …openssl x509 -req -in tmp.csr -CA ca.pem -CAkey ca.key -CAcreateserial -out client.crt -days $days
49 …sr -CA ca.pem -CAkey ca.key -CAcreateserial -out client_encrypted.crt -days $days -serial -fingerp…
54 …openssl x509 -req -in tmp.csr -CA ca.pem -CAkey ca.key -CAcreateserial -out server.crt -days $days
/external/ltp/lib/
Dtst_rtctime.c47 * The number of days in the month.
61 int days; in tst_rtc_time_to_tm() local
64 days = time / 86400; in tst_rtc_time_to_tm()
68 tm->tm_wday = (days + 4) % 7; in tst_rtc_time_to_tm()
70 year = 1970 + days / 365; in tst_rtc_time_to_tm()
71 days -= (year - 1970) * 365 in tst_rtc_time_to_tm()
74 while (days < 0) { in tst_rtc_time_to_tm()
76 days += 365 + is_leap_year(year); in tst_rtc_time_to_tm()
79 tm->tm_yday = days + 1; in tst_rtc_time_to_tm()
84 newdays = days - rtc_month_days(month, year); in tst_rtc_time_to_tm()
[all …]
/external/cronet/third_party/icu/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 [],
90 /* Number of days in a week */
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()
333 form. Also, reorder the days so that they are in the proper order
[all …]
/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 [],
90 /* Number of days in a week */
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()
333 form. Also, reorder the days so that they are in the proper order
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.members/
Dplus_minus_equal.pass.cpp14 // constexpr day& operator+=(const days& d) noexcept;
15 // constexpr day& operator-=(const days& d) noexcept;
39 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/cronet/buildtools/third_party/libc++/trunk/test/std/time/time.cal/time.cal.day/time.cal.day.members/
Dplus_minus_equal.pass.cpp13 // constexpr day& operator+=(const days& d) noexcept;
14 // constexpr day& operator-=(const days& d) noexcept;
38 using days = std::chrono::days; in main() typedef
40 ASSERT_NOEXCEPT(std::declval<day&>() += std::declval<days>()); in main()
41 ASSERT_NOEXCEPT(std::declval<day&>() -= std::declval<days>()); in main()
43 ASSERT_SAME_TYPE(day&, decltype(std::declval<day&>() += std::declval<days>())); in main()
44 ASSERT_SAME_TYPE(day&, decltype(std::declval<day&>() -= std::declval<days>())); in main()
46 static_assert(testConstexpr<day, days>(), ""); in main()
51 assert(static_cast<unsigned>(d += days{22}) == i + 22); in main()
53 assert(static_cast<unsigned>(d -= days{12}) == i + 10); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/
Dplus_minus_equal.pass.cpp14 // constexpr weekday& operator+=(const days& d) noexcept;
15 // constexpr weekday& operator-=(const days& d) noexcept;
40 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/icu/android_icu4j/src/main/java/android/icu/util/
DChineseCalendar.java91 // days.' This is the number of days after January 1, 1970 Gregorian,
94 // 1970 0:00 Asia/Shanghai. Conversion of local days to and from
120 * Cache that maps Gregorian year to local days of winter solstice.
126 * Cache that maps Gregorian year to local days of Chinese new year.
364 * DAY_OF_YEAR In a non-leap year there are 353, 354, or 355 days. In
365 * a leap year there are 383, 384, or 385 days.
367 * WEEK_OF_YEAR The least maximum occurs if there are 353 days in the
369 * we have 49 full weeks and 4 days in the last week: 6 + 49*7 + 4 =
371 * 385 days in the year, and WOY 1 extends 6 days into the prior year.
372 * Then there are 54 full weeks, and 6 days in the last week: 1 + 54*7
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DChineseCalendar.java91 // days.' This is the number of days after January 1, 1970 Gregorian,
94 // 1970 0:00 Asia/Shanghai. Conversion of local days to and from
120 * Cache that maps Gregorian year to local days of winter solstice.
126 * Cache that maps Gregorian year to local days of Chinese new year.
374 * DAY_OF_YEAR In a non-leap year there are 353, 354, or 355 days. In
375 * a leap year there are 383, 384, or 385 days.
377 * WEEK_OF_YEAR The least maximum occurs if there are 353 days in the
379 * we have 49 full weeks and 4 days in the last week: 6 + 49*7 + 4 =
381 * 385 days in the year, and WOY 1 extends 6 days into the prior year.
382 * Then there are 54 full weeks, and 6 days in the last week: 1 + 54*7
[all …]

12345678910>>...101