Home
last modified time | relevance | path

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

12345678910>>...27

/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/cronet/buildtools/third_party/libc++/trunk/test/std/time/time.cal/time.cal.year/time.cal.year.nonmembers/
Dplus.pass.cpp39 using years = std::chrono::years; in main() typedef
41 ASSERT_NOEXCEPT( std::declval<year>() + std::declval<years>()); in main()
42 ASSERT_SAME_TYPE(year, decltype(std::declval<year>() + std::declval<years>())); in main()
44 ASSERT_NOEXCEPT( std::declval<years>() + std::declval<year>()); in main()
45 ASSERT_SAME_TYPE(year, decltype(std::declval<years>() + std::declval<year>())); in main()
47 static_assert(testConstexpr<year, years>(), ""); in main()
52 year y1 = y + years{i}; in main()
53 year y2 = years{i} + y; in main()
Dminus.pass.cpp41 using years = std::chrono::years; in main() typedef
43 ASSERT_NOEXCEPT( std::declval<year>() - std::declval<years>()); in main()
44 ASSERT_SAME_TYPE(year , decltype(std::declval<year>() - std::declval<years>())); in main()
47 ASSERT_SAME_TYPE(years, decltype(std::declval<year>() - std::declval<year>())); in main()
49 static_assert(testConstexpr<year, years>(), ""); in main()
54 year y1 = y - years{i}; in main()
55 years ys1 = y - year{i}; in main()
/external/cronet/buildtools/third_party/libc++/trunk/test/std/time/time.cal/time.cal.year/time.cal.year.members/
Dplus_minus_equal.pass.cpp38 using years = std::chrono::years; in main() typedef
40 ASSERT_NOEXCEPT(std::declval<year&>() += std::declval<years>()); in main()
41 ASSERT_NOEXCEPT(std::declval<year&>() -= std::declval<years>()); in main()
43 ASSERT_SAME_TYPE(year&, decltype(std::declval<year&>() += std::declval<years>())); in main()
44 ASSERT_SAME_TYPE(year&, decltype(std::declval<year&>() -= std::declval<years>())); in main()
46 static_assert(testConstexpr<year, years>(), ""); in main()
51 assert(static_cast<int>(yr += years{10}) == i + 10); in main()
53 assert(static_cast<int>(yr -= 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/cronet/buildtools/third_party/libc++/trunk/test/std/time/time.cal/time.cal.ym/time.cal.ym.members/
Dplus_minus_equal_year.pass.cpp39 using years = std::chrono::years; in main() typedef
43 ASSERT_NOEXCEPT( std::declval<year_month&>() += std::declval<years>()); in main()
44 ASSERT_SAME_TYPE(year_month&, decltype(std::declval<year_month&>() += std::declval<years>())); in main()
46 ASSERT_NOEXCEPT( std::declval<year_month&>() -= std::declval<years>()); in main()
47 ASSERT_SAME_TYPE(year_month&, decltype(std::declval<year_month&>() -= std::declval<years>())); in main()
49 static_assert(testConstexpr<year_month, years>(year_month{year{1}, month{1}}), ""); in main()
55 assert(static_cast<int>((ym += years{2}).year()) == i + 2); in main()
59 assert(static_cast<int>((ym -= years{1}).year()) == i + 1); in main()
/external/cronet/buildtools/third_party/libc++/trunk/test/std/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/
Dplus_minus_equal_year.pass.cpp41 using years = std::chrono::years; in main() typedef
43 ASSERT_NOEXCEPT(std::declval<year_month_day_last&>() += std::declval<years>()); in main()
44 ASSERT_NOEXCEPT(std::declval<year_month_day_last&>() -= std::declval<years>()); in main()
46 …YPE(year_month_day_last&, decltype(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()
49 …static_assert(testConstexpr<year_month_day_last, years>(year_month_day_last{year{1}, month_day_las… in main()
55 assert(static_cast<int>((ymdl += years{2}).year()) == i + 2); in main()
59 assert(static_cast<int>((ymdl -= 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/cronet/buildtools/third_party/libc++/trunk/test/std/time/time.cal/time.cal.ymd/time.cal.ymd.members/
Dplus_minus_equal_year.pass.cpp41 using years = std::chrono::years; in main() typedef
43 ASSERT_NOEXCEPT(std::declval<year_month_day&>() += std::declval<years>()); in main()
44 ASSERT_NOEXCEPT(std::declval<year_month_day&>() -= std::declval<years>()); in main()
46 …ERT_SAME_TYPE(year_month_day&, decltype(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()
49 …static_assert(testConstexpr<year_month_day, years>(year_month_day{year{1}, month{1}, day{1}}), ""); in main()
56 assert(static_cast<int>((ym += years{2}).year()) == i + 2); in main()
62 assert(static_cast<int>((ym -= years{1}).year()) == i + 1); in main()
/external/cronet/buildtools/third_party/libc++/trunk/test/std/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/
Dplus_minus_equal_year.pass.cpp42 using years = std::chrono::years; in main() typedef
44 ASSERT_NOEXCEPT(std::declval<year_month_weekday_last&>() += std::declval<years>()); in main()
45 ASSERT_NOEXCEPT(std::declval<year_month_weekday_last&>() -= std::declval<years>()); in main()
47 …_month_weekday_last&, decltype(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()
53 …static_assert(testConstexpr<year_month_weekday_last, years>(year_month_weekday_last{year{1}, Janua… in main()
59 assert(static_cast<int>((ymwd += years{2}).year()) == i + 2); in main()
67 assert(static_cast<int>((ymwd -= 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/cronet/buildtools/third_party/libc++/trunk/test/std/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/
Dplus_minus_equal_year.pass.cpp42 using years = std::chrono::years; in main() typedef
44 …XCEPT( std::declval<year_month_weekday&>() += std::declval<years>()); in main()
45 …_TYPE(year_month_weekday&, decltype(std::declval<year_month_weekday&>() += std::declval<years>())); in main()
47 …XCEPT( std::declval<year_month_weekday&>() -= std::declval<years>()); in main()
48 …_TYPE(year_month_weekday&, decltype(std::declval<year_month_weekday&>() -= std::declval<years>())); in main()
53 …static_assert(testConstexpr<year_month_weekday, years>(year_month_weekday{year{1}, January, weekda… in main()
59 assert(static_cast<int>((ymwd += years{2}).year()) == i + 2); in main()
69 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()
/external/python/dateutil/dateutil/
Drelativedelta.py106 years=0, months=0, days=0, leapdays=0, weeks=0, argument
127 self.years = 0
172 if any(x is not None and x != int(x) for x in (years, months)):
177 self.years = int(years)
256 self.years += div * s
278 self.years = div * s
280 self.years = 0
308 return self.__class__(years=self.years, months=self.months,
319 return self.__class__(years=other.years + self.years,
346 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/cronet/buildtools/third_party/libc++/trunk/include/__chrono/
Dyear.h43 _LIBCPP_HIDE_FROM_ABI constexpr year& operator+=(const years& __dy) noexcept;
44 _LIBCPP_HIDE_FROM_ABI constexpr year& operator-=(const years& __dy) noexcept;
65 year operator+ (const year& __lhs, const years& __rhs) noexcept
69 year operator+ (const years& __lhs, const year& __rhs) noexcept
73 year operator- (const year& __lhs, const years& __rhs) noexcept
77 years operator-(const year& __lhs, const year& __rhs) noexcept
78 { return years{static_cast<int>(__lhs) - static_cast<int>(__rhs)}; }
82 year& year::operator+=(const years& __dy) noexcept
86 year& year::operator-=(const years& __dy) noexcept
/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()
/external/cronet/buildtools/third_party/libc++/trunk/test/std/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/
Dplus.pass.cpp44 std::chrono::years offset{23}; in testConstexprYears()
73 using years = std::chrono::years; in main() typedef
100 ASSERT_NOEXCEPT(std::declval<year_month_day_last>() + std::declval<years>()); in main()
101 ASSERT_NOEXCEPT(std::declval<years>() + std::declval<year_month_day_last>()); in main()
103 …E_TYPE(year_month_day_last, decltype(std::declval<year_month_day_last>() + std::declval<years>())); in main()
104 …ASSERT_SAME_TYPE(year_month_day_last, decltype(std::declval<years>() + std::declval<year_month_day… in main()
111 year_month_day_last ym1 = ym + years{i}; in main()
112 year_month_day_last ym2 = years{i} + ym; 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()

12345678910>>...27