Home
last modified time | relevance | path

Searched refs:years (Results 1 – 25 of 440) sorted by relevance

12345678910>>...18

/external/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.nonmembers/
Dplus.pass.cpp40 using years = std::chrono::years; in main() typedef
42 ASSERT_NOEXCEPT( std::declval<year>() + std::declval<years>()); in main()
43 ASSERT_SAME_TYPE(year, decltype(std::declval<year>() + std::declval<years>())); in main()
45 ASSERT_NOEXCEPT( std::declval<years>() + std::declval<year>()); in main()
46 ASSERT_SAME_TYPE(year, decltype(std::declval<years>() + std::declval<year>())); in main()
48 static_assert(testConstexpr<year, years>(), ""); in main()
53 year y1 = y + years{i}; in main()
54 year y2 = years{i} + y; in main()
Dminus.pass.cpp44 using years = std::chrono::years; in main() typedef
46 ASSERT_NOEXCEPT( std::declval<year>() - std::declval<years>()); in main()
47 ASSERT_SAME_TYPE(year , decltype(std::declval<year>() - std::declval<years>())); in main()
50 ASSERT_SAME_TYPE(years, decltype(std::declval<year>() - std::declval<year>())); in main()
52 static_assert(testConstexpr<year, years>(), ""); in main()
57 year y1 = y - years{i}; in main()
58 years ys1 = y - year{i}; in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.members/
Dplus_minus_equal.pass.cpp39 using years = std::chrono::years; in main() typedef
41 ASSERT_NOEXCEPT(std::declval<year&>() += std::declval<years>()); in main()
42 ASSERT_NOEXCEPT(std::declval<year&>() -= std::declval<years>()); in main()
44 ASSERT_SAME_TYPE(year&, decltype(std::declval<year&>() += std::declval<years>())); in main()
45 ASSERT_SAME_TYPE(year&, decltype(std::declval<year&>() -= std::declval<years>())); in main()
47 static_assert(testConstexpr<year, years>(), ""); in main()
52 assert(static_cast<int>(year += years{10}) == i + 10); in main()
54 assert(static_cast<int>(year -= years{ 9}) == i + 1); in main()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/testdata/
Dtestdata_en.txt19 3 years ago
20 2 years ago
22 0 years
24 2 years from now
25 3 years from now
26 5 years from now
27 10 years from now
28 11 years from now
29 12 years from now
30 20 years from now
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/testdata/
Dtestdata_en.txt19 3 years ago
20 2 years ago
22 0 years
24 2 years from now
25 3 years from now
26 5 years from now
27 10 years from now
28 11 years from now
29 12 years from now
30 20 years from now
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.members/
Dplus_minus_equal_year.pass.cpp40 using years = std::chrono::years; in main() typedef
44 ASSERT_NOEXCEPT( std::declval<year_month&>() += std::declval<years>()); in main()
45 ASSERT_SAME_TYPE(year_month&, decltype(std::declval<year_month&>() += std::declval<years>())); in main()
47 ASSERT_NOEXCEPT( std::declval<year_month&>() -= std::declval<years>()); in main()
48 ASSERT_SAME_TYPE(year_month&, decltype(std::declval<year_month&>() -= std::declval<years>())); in main()
50 static_assert(testConstexpr<year_month, years>(year_month{year{1}, month{1}}), ""); in main()
56 assert(static_cast<int>((ym += years{2}).year()) == i + 2); in main()
60 assert(static_cast<int>((ym -= years{1}).year()) == i + 1); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/
Dplus_minus_equal_year.pass.cpp42 using years = std::chrono::years; in main() typedef
44 ASSERT_NOEXCEPT(std::declval<year_month_day_last&>() += std::declval<years>()); in main()
45 ASSERT_NOEXCEPT(std::declval<year_month_day_last&>() -= std::declval<years>()); in main()
47 …YPE(year_month_day_last&, decltype(std::declval<year_month_day_last&>() += std::declval<years>())); in main()
48 …YPE(year_month_day_last&, decltype(std::declval<year_month_day_last&>() -= std::declval<years>())); in main()
50 …static_assert(testConstexpr<year_month_day_last, years>(year_month_day_last{year{1}, month_day_las… in main()
56 assert(static_cast<int>((ymdl += years{2}).year()) == i + 2); in main()
60 assert(static_cast<int>((ymdl -= years{1}).year()) == i + 1); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/
Dplus_minus_equal_year.pass.cpp42 using years = std::chrono::years; in main() typedef
44 ASSERT_NOEXCEPT(std::declval<year_month_day&>() += std::declval<years>()); in main()
45 ASSERT_NOEXCEPT(std::declval<year_month_day&>() -= std::declval<years>()); in main()
47 …ERT_SAME_TYPE(year_month_day&, decltype(std::declval<year_month_day&>() += std::declval<years>())); in main()
48 …ERT_SAME_TYPE(year_month_day&, decltype(std::declval<year_month_day&>() -= std::declval<years>())); in main()
50 …static_assert(testConstexpr<year_month_day, years>(year_month_day{year{1}, month{1}, day{1}}), ""); in main()
57 assert(static_cast<int>((ym += years{2}).year()) == i + 2); in main()
63 assert(static_cast<int>((ym -= years{1}).year()) == i + 1); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/
Dplus_minus_equal_year.pass.cpp43 using years = std::chrono::years; in main() typedef
45 ASSERT_NOEXCEPT(std::declval<year_month_weekday_last&>() += std::declval<years>()); in main()
46 ASSERT_NOEXCEPT(std::declval<year_month_weekday_last&>() -= std::declval<years>()); in main()
48 …_month_weekday_last&, decltype(std::declval<year_month_weekday_last&>() += std::declval<years>())); in main()
49 …_month_weekday_last&, decltype(std::declval<year_month_weekday_last&>() -= std::declval<years>())); in main()
54 …static_assert(testConstexpr<year_month_weekday_last, years>(year_month_weekday_last{year{1}, Janua… in main()
60 assert(static_cast<int>((ymwd += years{2}).year()) == i + 2); in main()
68 assert(static_cast<int>((ymwd -= years{1}).year()) == i + 1); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/
Dplus_minus_equal_year.pass.cpp43 using years = std::chrono::years; in main() typedef
45 …XCEPT( std::declval<year_month_weekday&>() += std::declval<years>()); in main()
46 …_TYPE(year_month_weekday&, decltype(std::declval<year_month_weekday&>() += std::declval<years>())); in main()
48 …XCEPT( std::declval<year_month_weekday&>() -= std::declval<years>()); in main()
49 …_TYPE(year_month_weekday&, decltype(std::declval<year_month_weekday&>() -= std::declval<years>())); in main()
54 …static_assert(testConstexpr<year_month_weekday, years>(year_month_weekday{year{1}, January, weekda… in main()
60 assert(static_cast<int>((ymwd += years{2}).year()) == i + 2); in main()
70 assert(static_cast<int>((ymwd -= years{1}).year()) == i + 1); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/
Dplus.pass.cpp37 std::chrono::years offset{23}; in testConstexprYears()
58 using years = std::chrono::years; in main() typedef
64 ASSERT_NOEXCEPT(std::declval<year_month>() + std::declval<years>()); in main()
65 ASSERT_NOEXCEPT(std::declval<years>() + std::declval<year_month>()); in main()
67 ASSERT_SAME_TYPE(year_month, decltype(std::declval<year_month>() + std::declval<years>())); in main()
68 ASSERT_SAME_TYPE(year_month, decltype(std::declval<years>() + std::declval<year_month>())); in main()
75 year_month ym1 = ym + years{i}; in main()
76 year_month ym2 = years{i} + ym; in main()
Dminus.pass.cpp36 using years = std::chrono::years; in main() typedef
42 ASSERT_NOEXCEPT( std::declval<year_month>() - std::declval<years>()); in main()
43 ASSERT_SAME_TYPE(year_month, decltype(std::declval<year_month>() - std::declval<years>())); in main()
50 year_month ym1 = ym - years{i}; in main()
/external/python/dateutil/dateutil/
Drelativedelta.py92 years=0, months=0, days=0, leapdays=0, weeks=0, argument
113 self.years = 0
158 if any(x is not None and x != int(x) for x in (years, months)):
163 self.years = int(years)
242 self.years += div * s
264 self.years = div * s
266 self.years = 0
294 return self.__class__(years=self.years, months=self.months,
305 return self.__class__(years=other.years + self.years,
332 return self.__class__(years=self.years,
[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,
79 self.assertEqual(self.now+relativedelta(years=+1, months=-1),
91 self.assertEqual(date(2000, 2, 28)+relativedelta(years=+1),
93 self.assertEqual(date(2000, 2, 29)+relativedelta(years=+1),
96 self.assertEqual(date(1999, 2, 28)+relativedelta(years=+1),
98 self.assertEqual(date(1999, 3, 1)+relativedelta(years=+1),
100 self.assertEqual(date(1999, 3, 1)+relativedelta(years=+1),
103 self.assertEqual(date(2001, 2, 28)+relativedelta(years=-1),
105 self.assertEqual(date(2001, 3, 1)+relativedelta(years=-1),
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.nonmembers/
Dplus.pass.cpp37 std::chrono::years offset{23}; in testConstexprYears()
59 using years = std::chrono::years; in main() typedef
89 ASSERT_NOEXCEPT(std::declval<year_month_day>() + std::declval<years>()); in main()
90 ASSERT_NOEXCEPT(std::declval<years>() + std::declval<year_month_day>()); in main()
92 …ASSERT_SAME_TYPE(year_month_day, decltype(std::declval<year_month_day>() + std::declval<years>())); in main()
93 …ASSERT_SAME_TYPE(year_month_day, decltype(std::declval<years>() + std::declval<year_month_day>())); in main()
100 year_month_day ym1 = ym + years{i}; in main()
101 year_month_day ym2 = years{i} + ym; in main()
Dminus.pass.cpp29 std::chrono::year_month_day ym1 = ym0 - std::chrono::years{10}; in test_constexpr()
43 using years = std::chrono::years; in main() typedef
45 … ASSERT_NOEXCEPT( std::declval<year_month_day>() - std::declval<years>()); in main()
46 …ASSERT_SAME_TYPE(year_month_day, decltype(std::declval<year_month_day>() - std::declval<years>())); in main()
55 year_month_day ym1 = ym - years{i}; in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/
Dplus.pass.cpp45 std::chrono::years offset{23}; in testConstexprYears()
74 using years = std::chrono::years; in main() typedef
101 ASSERT_NOEXCEPT(std::declval<year_month_day_last>() + std::declval<years>()); in main()
102 ASSERT_NOEXCEPT(std::declval<years>() + std::declval<year_month_day_last>()); in main()
104 …E_TYPE(year_month_day_last, decltype(std::declval<year_month_day_last>() + std::declval<years>())); in main()
105 …ASSERT_SAME_TYPE(year_month_day_last, decltype(std::declval<years>() + std::declval<year_month_day… in main()
112 year_month_day_last ym1 = ym + years{i}; in main()
113 year_month_day_last ym2 = years{i} + ym; in main()
Dminus.pass.cpp35 std::chrono::year_month_day_last ym1 = ymdl - std::chrono::years{10}; in testConstexprYears()
58 using years = std::chrono::years; in main() typedef
63 …EXCEPT( std::declval<year_month_day_last>() - std::declval<years>()); in main()
64 …E_TYPE(year_month_day_last, decltype(std::declval<year_month_day_last>() - std::declval<years>())); in main()
70 year_month_day_last ym1 = ym - years{i}; in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/
Dplus.pass.cpp37 std::chrono::years offset{23}; in testConstexprYears()
62 using years = std::chrono::years; in main() typedef
95 ASSERT_NOEXCEPT(std::declval<year_month_weekday>() + std::declval<years>()); in main()
96 ASSERT_NOEXCEPT(std::declval<years>() + std::declval<year_month_weekday>()); in main()
98 …AME_TYPE(year_month_weekday, decltype(std::declval<year_month_weekday>() + std::declval<years>())); in main()
99 …ASSERT_SAME_TYPE(year_month_weekday, decltype(std::declval<years>() + std::declval<year_month_week… in main()
106 year_month_weekday ym1 = ym + years{i}; in main()
107 year_month_weekday ym2 = years{i} + ym; in main()
Dminus.pass.cpp32 std::chrono::year_month_weekday ym1 = ym0 - std::chrono::years{10}; in testConstexprYears()
61 using years = std::chrono::years; in main() typedef
68 …NOEXCEPT( std::declval<year_month_weekday>() - std::declval<years>()); in main()
69 …AME_TYPE(year_month_weekday, decltype(std::declval<year_month_weekday>() - std::declval<years>())); in main()
76 year_month_weekday ym1 = ym - years{i}; in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.nonmembers/
Dplus.pass.cpp34 std::chrono::years offset{23}; in testConstexprYears()
58 using years = std::chrono::years; in main() typedef
91 ASSERT_NOEXCEPT(std::declval<year_month_weekday_last>() + std::declval<years>()); in main()
92 ASSERT_NOEXCEPT(std::declval<years>() + std::declval<year_month_weekday_last>()); in main()
94 …ear_month_weekday_last, decltype(std::declval<year_month_weekday_last>() + std::declval<years>())); in main()
95 …ASSERT_SAME_TYPE(year_month_weekday_last, decltype(std::declval<years>() + std::declval<year_month… in main()
102 year_month_weekday_last ym1 = ym + years{i}; in main()
103 year_month_weekday_last ym2 = years{i} + ym; in main()
Dminus.pass.cpp30 std::chrono::years offset{14}; in testConstexprYears()
51 using years = std::chrono::years; in main() typedef
59 … std::declval<year_month_weekday_last>() - std::declval<years>()); in main()
60 …ear_month_weekday_last, decltype(std::declval<year_month_weekday_last>() - std::declval<years>())); in main()
67 year_month_weekday_last ym1 = ym - years{i}; in main()
/external/python/dateutil/docs/
Drelativedelta.rst76 >>> NOW+relativedelta(years=+1, months=-1)
92 The logic for years is the same, even on leap years.
96 >>> date(2000,2,28)+relativedelta(years=+1)
98 >>> date(2000,2,29)+relativedelta(years=+1)
101 >>> date(1999,2,28)+relativedelta(years=+1)
103 >>> date(1999,3,1)+relativedelta(years=+1)
106 >>> date(2001,2,28)+relativedelta(years=-1)
108 >>> date(2001,3,1)+relativedelta(years=-1)
157 relativedelta(years=+2, months=+8, days=+16,
167 relativedelta(years=+25, months=+5, days=+12,
[all …]
/external/u-boot/drivers/rtc/
Dm41t60.c90 uchar min, date, month, years; in rtc_validate() local
116 years = data[RTC_YEAR]; in rtc_validate()
122 0x99 < years || 0x09 < (years & 0x0F) || in rtc_validate()
125 ((0x00 != (years & 0x03)) || in rtc_validate()
126 (0x00 == years && 0x00 != (data[RTC_MONTH] & 0xC0))))) { in rtc_validate()
/external/androidplot/Examples/DemoApp/src/com/androidplot/demos/
DTimeSeriesActivity.java45 Number[] years = { in onCreate() local
54 Arrays.asList(years), in onCreate()
91 plot1.setDomainStep(XYStepMode.SUBDIVIDE, years.length); in onCreate()

12345678910>>...18