Home
last modified time | relevance | path

Searched refs:months (Results 1 – 25 of 248) sorted by relevance

12345678910

/external/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.nonmembers/
Dplus.pass.cpp50 using months = std::chrono::months; in main() typedef
52 ASSERT_NOEXCEPT(std::declval<month>() + std::declval<months>()); in main()
53 ASSERT_NOEXCEPT(std::declval<months>() + std::declval<month>()); in main()
55 ASSERT_SAME_TYPE(month, decltype(std::declval<month>() + std::declval<months>())); in main()
56 ASSERT_SAME_TYPE(month, decltype(std::declval<months>() + std::declval<month>() )); in main()
58 static_assert(testConstexpr<month, months>(), ""); in main()
63 month m1 = my + months{i}; in main()
64 month m2 = months{i} + my; in main()
Dminus.pass.cpp51 using months = std::chrono::months; in main() typedef
53 ASSERT_NOEXCEPT(std::declval<month>() - std::declval<months>()); in main()
56 ASSERT_SAME_TYPE(month , decltype(std::declval<month>() - std::declval<months>())); in main()
57 ASSERT_SAME_TYPE(months, decltype(std::declval<month>() - std::declval<month> ())); in main()
59 static_assert(testConstexpr<month, months>(), ""); in main()
64 month m1 = m - months{i}; in main()
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.nonmembers/
Dplus.pass.cpp49 using months = std::chrono::months; in main() typedef
51 ASSERT_NOEXCEPT(std::declval<month>() + std::declval<months>()); in main()
52 ASSERT_NOEXCEPT(std::declval<months>() + std::declval<month>()); in main()
54 ASSERT_SAME_TYPE(month, decltype(std::declval<month>() + std::declval<months>())); in main()
55 ASSERT_SAME_TYPE(month, decltype(std::declval<months>() + std::declval<month>() )); in main()
57 static_assert(testConstexpr<month, months>(), ""); in main()
62 month m1 = my + months{i}; in main()
63 month m2 = months{i} + my; in main()
Dminus.pass.cpp46 using months = std::chrono::months; in main() typedef
48 ASSERT_NOEXCEPT(std::declval<month>() - std::declval<months>()); in main()
51 ASSERT_SAME_TYPE(month , decltype(std::declval<month>() - std::declval<months>())); in main()
52 ASSERT_SAME_TYPE(months, decltype(std::declval<month>() - std::declval<month> ())); in main()
54 static_assert(testConstexpr<month, months>(), ""); in main()
59 month m1 = m - months{i}; in main()
/external/python/dateutil/dateutil/
Drelativedelta.py106 years=0, months=0, days=0, leapdays=0, weeks=0, argument
128 self.months = 0
146 months = (dt1.year - dt2.year) * 12 + (dt1.month - dt2.month)
147 self._set_months(months)
162 months += increment
163 self._set_months(months)
172 if any(x is not None and x != int(x) for x in (years, months)):
178 self.months = int(months)
252 if abs(self.months) > 11:
253 s = _sign(self.months)
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/testdata/
Dtestdata_en.txt35 3 months ago
36 2 months ago
38 0 months
40 2 months from now
41 3 months from now
42 5 months from now
43 10 months from now
44 11 months from now
45 12 months from now
46 20 months from now
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/testdata/
Dtestdata_en.txt35 3 months ago
36 2 months ago
38 0 months
40 2 months from now
41 3 months from now
42 5 months from now
43 10 months from now
44 11 months from now
45 12 months from now
46 20 months from now
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.members/
Dplus_minus_equal.pass.cpp39 using months = std::chrono::months; in main() typedef
41 ASSERT_NOEXCEPT(std::declval<month&>() += std::declval<months&>()); in main()
42 ASSERT_NOEXCEPT(std::declval<month&>() -= std::declval<months&>()); in main()
43 ASSERT_SAME_TYPE(month&, decltype(std::declval<month&>() += std::declval<months&>())); in main()
44 ASSERT_SAME_TYPE(month&, decltype(std::declval<month&>() -= std::declval<months&>())); in main()
46 static_assert(testConstexpr<month, months>(), ""); in main()
54 assert(static_cast<unsigned>(month += months{10}) == static_cast<unsigned>(exp)); in main()
64 assert(static_cast<unsigned>(month -= months{ 9}) == static_cast<unsigned>(exp)); in main()
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.members/
Dplus_minus_equal.pass.cpp38 using months = std::chrono::months; in main() typedef
40 ASSERT_NOEXCEPT(std::declval<month&>() += std::declval<months&>()); in main()
41 ASSERT_NOEXCEPT(std::declval<month&>() -= std::declval<months&>()); in main()
42 ASSERT_SAME_TYPE(month&, decltype(std::declval<month&>() += std::declval<months&>())); in main()
43 ASSERT_SAME_TYPE(month&, decltype(std::declval<month&>() -= std::declval<months&>())); in main()
45 static_assert(testConstexpr<month, months>(), ""); in main()
53 assert(static_cast<unsigned>(m += months{10}) == static_cast<unsigned>(exp)); in main()
63 assert(static_cast<unsigned>(m -= months{ 9}) == static_cast<unsigned>(exp)); in main()
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.members/
Dplus_minus_equal_month.pass.cpp38 using months = std::chrono::months; in main() typedef
42 ASSERT_NOEXCEPT( std::declval<year_month&>() += std::declval<months>()); in main()
43 ASSERT_SAME_TYPE(year_month&, decltype(std::declval<year_month&>() += std::declval<months>())); in main()
45 ASSERT_NOEXCEPT( std::declval<year_month&>() -= std::declval<months>()); in main()
46 ASSERT_SAME_TYPE(year_month&, decltype(std::declval<year_month&>() -= std::declval<months>())); in main()
48 static_assert(testConstexpr<year_month, months>(year_month{year{1234}, month{1}}), ""); in main()
54 assert(static_cast<unsigned>((ym += months{2}).month()) == i + 2); in main()
58 assert(static_cast<unsigned>((ym -= months{1}).month()) == i + 1); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.members/
Dplus_minus_equal_month.pass.cpp39 using months = std::chrono::months; in main() typedef
43 ASSERT_NOEXCEPT( std::declval<year_month&>() += std::declval<months>()); in main()
44 ASSERT_SAME_TYPE(year_month&, decltype(std::declval<year_month&>() += std::declval<months>())); in main()
46 ASSERT_NOEXCEPT( std::declval<year_month&>() -= std::declval<months>()); in main()
47 ASSERT_SAME_TYPE(year_month&, decltype(std::declval<year_month&>() -= std::declval<months>())); in main()
49 static_assert(testConstexpr<year_month, months>(year_month{year{1234}, month{1}}), ""); in main()
55 assert(static_cast<unsigned>((ym += months{2}).month()) == i + 2); in main()
59 assert(static_cast<unsigned>((ym -= months{1}).month()) == i + 1); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/
Dplus_minus_equal_month.pass.cpp42 using months = std::chrono::months; in main() typedef
44 ASSERT_NOEXCEPT(std::declval<year_month_day_last&>() += std::declval<months>()); in main()
45 ASSERT_NOEXCEPT(std::declval<year_month_day_last&>() -= std::declval<months>()); in main()
47 …PE(year_month_day_last&, decltype(std::declval<year_month_day_last&>() += std::declval<months>())); in main()
48 …PE(year_month_day_last&, decltype(std::declval<year_month_day_last&>() -= std::declval<months>())); in main()
50 …static_assert(testConstexpr<year_month_day_last, months>(year_month_day_last{year{1234}, month_day… in main()
57 assert(static_cast<unsigned>((ym += months{2}).month()) == i + 2); in main()
61 assert(static_cast<unsigned>((ym -= months{1}).month()) == i + 1); in main()
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/
Dplus_minus_equal_month.pass.cpp41 using months = std::chrono::months; in main() typedef
43 ASSERT_NOEXCEPT(std::declval<year_month_day_last&>() += std::declval<months>()); in main()
44 ASSERT_NOEXCEPT(std::declval<year_month_day_last&>() -= std::declval<months>()); in main()
46 …PE(year_month_day_last&, decltype(std::declval<year_month_day_last&>() += std::declval<months>())); in main()
47 …PE(year_month_day_last&, decltype(std::declval<year_month_day_last&>() -= std::declval<months>())); in main()
49 …static_assert(testConstexpr<year_month_day_last, months>(year_month_day_last{year{1234}, month_day… in main()
56 assert(static_cast<unsigned>((ym += months{2}).month()) == i + 2); in main()
60 assert(static_cast<unsigned>((ym -= months{1}).month()) == i + 1); in main()
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/
Dplus_minus_equal_month.pass.cpp41 using months = std::chrono::months; in main() typedef
43 ASSERT_NOEXCEPT(std::declval<year_month_day&>() += std::declval<months>()); in main()
44 ASSERT_NOEXCEPT(std::declval<year_month_day&>() -= std::declval<months>()); in main()
46 …RT_SAME_TYPE(year_month_day&, decltype(std::declval<year_month_day&>() += std::declval<months>())); in main()
47 …RT_SAME_TYPE(year_month_day&, decltype(std::declval<year_month_day&>() -= std::declval<months>())); in main()
49 …static_assert(testConstexpr<year_month_day, months>(year_month_day{year{1234}, month{1}, day{1}}),… in main()
56 assert(static_cast<unsigned>((ym += months{2}).month()) == i + 2); in main()
62 assert(static_cast<unsigned>((ym -= months{1}).month()) == i + 1); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/
Dplus_minus_equal_month.pass.cpp42 using months = std::chrono::months; in main() typedef
44 ASSERT_NOEXCEPT(std::declval<year_month_day&>() += std::declval<months>()); in main()
45 ASSERT_NOEXCEPT(std::declval<year_month_day&>() -= std::declval<months>()); in main()
47 …RT_SAME_TYPE(year_month_day&, decltype(std::declval<year_month_day&>() += std::declval<months>())); in main()
48 …RT_SAME_TYPE(year_month_day&, decltype(std::declval<year_month_day&>() -= std::declval<months>())); in main()
50 …static_assert(testConstexpr<year_month_day, months>(year_month_day{year{1234}, month{1}, day{1}}),… in main()
57 assert(static_cast<unsigned>((ym += months{2}).month()) == i + 2); in main()
63 assert(static_cast<unsigned>((ym -= months{1}).month()) == i + 1); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/
Dplus_minus_equal_month.pass.cpp43 using months = std::chrono::months; in main() typedef
45 ASSERT_NOEXCEPT(std::declval<year_month_weekday_last&>() += std::declval<months>()); in main()
46 ASSERT_NOEXCEPT(std::declval<year_month_weekday_last&>() -= std::declval<months>()); in main()
48 …month_weekday_last&, decltype(std::declval<year_month_weekday_last&>() += std::declval<months>())); in main()
49 …month_weekday_last&, decltype(std::declval<year_month_weekday_last&>() -= std::declval<months>())); in main()
52 …static_assert(testConstexpr<year_month_weekday_last, months>(year_month_weekday_last{year{1234}, m… in main()
59 assert(static_cast<unsigned>((ymwd += months{2}).month()) == i + 2); in main()
67 assert(static_cast<unsigned>((ymwd -= months{1}).month()) == i + 1); in main()
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/
Dplus_minus_equal_month.pass.cpp42 using months = std::chrono::months; in main() typedef
44 ASSERT_NOEXCEPT(std::declval<year_month_weekday_last&>() += std::declval<months>()); in main()
45 ASSERT_NOEXCEPT(std::declval<year_month_weekday_last&>() -= std::declval<months>()); in main()
47 …month_weekday_last&, decltype(std::declval<year_month_weekday_last&>() += std::declval<months>())); in main()
48 …month_weekday_last&, decltype(std::declval<year_month_weekday_last&>() -= std::declval<months>())); in main()
51 …static_assert(testConstexpr<year_month_weekday_last, months>(year_month_weekday_last{year{1234}, m… in main()
58 assert(static_cast<unsigned>((ymwd += months{2}).month()) == i + 2); in main()
66 assert(static_cast<unsigned>((ymwd -= months{1}).month()) == i + 1); in main()
/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,
45 relativedelta(months=-1, seconds=-1))
49 relativedelta(months=1, seconds=1))
54 relativedelta(months=-1, seconds=-1))
58 relativedelta(months=1, seconds=1))
61 self.assertEqual(self.now+relativedelta(months=+1),
65 self.assertEqual(self.now+relativedelta(months=+1, weeks=+1),
70 relativedelta(months=+1, weeks=+1, hour=10),
76 relativedelta(months=+1, days=+7, hours=+10))
[all …]
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/
Dplus.pass.cpp35 using months = std::chrono::months; typedef
64 ASSERT_NOEXCEPT(std::declval<year_month>() + std::declval<months>()); in test_ym_plus_m()
65 ASSERT_NOEXCEPT(std::declval<months>() + std::declval<year_month>()); in test_ym_plus_m()
68 std::declval<months>())); in test_ym_plus_m()
69 ASSERT_SAME_TYPE(year_month, decltype(std::declval<months>() + in test_ym_plus_m()
74 year_month ym1 = ym + months{i}; in test_ym_plus_m()
75 year_month ym2 = months{i} + ym; in test_ym_plus_m()
84 year_month ym1 = ym + months{i}; in test_ym_plus_m()
85 year_month ym2 = months{i} + ym; in test_ym_plus_m()
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/
Dplus_minus_equal_month.pass.cpp42 using months = std::chrono::months; in main() typedef
45 …CEPT( std::declval<year_month_weekday&>() += std::declval<months>()); in main()
46 …TYPE(year_month_weekday&, decltype(std::declval<year_month_weekday&>() += std::declval<months>())); in main()
48 …CEPT( std::declval<year_month_weekday&>() -= std::declval<months>()); in main()
49 …TYPE(year_month_weekday&, decltype(std::declval<year_month_weekday&>() -= std::declval<months>())); in main()
52 …static_assert(testConstexpr<year_month_weekday, months>(year_month_weekday{year{1234}, month{1}, w… in main()
59 assert(static_cast<unsigned>((ymwd += months{2}).month()) == i + 2); in main()
69 assert(static_cast<unsigned>((ymwd -= months{1}).month()) == i + 1); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/
Dplus_minus_equal_month.pass.cpp43 using months = std::chrono::months; in main() typedef
46 …CEPT( std::declval<year_month_weekday&>() += std::declval<months>()); in main()
47 …TYPE(year_month_weekday&, decltype(std::declval<year_month_weekday&>() += std::declval<months>())); in main()
49 …CEPT( std::declval<year_month_weekday&>() -= std::declval<months>()); in main()
50 …TYPE(year_month_weekday&, decltype(std::declval<year_month_weekday&>() -= std::declval<months>())); in main()
53 …static_assert(testConstexpr<year_month_weekday, months>(year_month_weekday{year{1234}, month{1}, w… in main()
60 assert(static_cast<unsigned>((ymwd += months{2}).month()) == i + 2); in main()
70 assert(static_cast<unsigned>((ymwd -= months{1}).month()) == i + 1); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/
Dplus.pass.cpp47 std::chrono::months offset{6}; in testConstexprMonths()
60 using months = std::chrono::months; in main() typedef
86 ASSERT_NOEXCEPT(std::declval<year_month>() + std::declval<months>()); in main()
87 ASSERT_NOEXCEPT(std::declval<months>() + std::declval<year_month>()); in main()
89 ASSERT_SAME_TYPE(year_month, decltype(std::declval<year_month>() + std::declval<months>())); in main()
90 ASSERT_SAME_TYPE(year_month, decltype(std::declval<months>() + std::declval<year_month>())); in main()
97 year_month ym1 = ym + months{i}; in main()
98 year_month ym2 = months{i} + ym; in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.nonmembers/
Dplus.pass.cpp47 std::chrono::months offset{6}; in testConstexprMonths()
61 using months = std::chrono::months; in main() typedef
65 ASSERT_NOEXCEPT(std::declval<year_month_day>() + std::declval<months>()); in main()
66 ASSERT_NOEXCEPT(std::declval<months>() + std::declval<year_month_day>()); in main()
68 …ASSERT_SAME_TYPE(year_month_day, decltype(std::declval<year_month_day>() + std::declval<months>())… in main()
69 …ASSERT_SAME_TYPE(year_month_day, decltype(std::declval<months>() + std::declval<year_month_day>())… in main()
76 year_month_day ym1 = ym + months{i}; in main()
77 year_month_day ym2 = months{i} + ym; in main()
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/
Dplus.pass.cpp56 std::chrono::months offset{6}; in testConstexprMonths()
72 using months = std::chrono::months; in main() typedef
78 ASSERT_NOEXCEPT(std::declval<year_month_day_last>() + std::declval<months>()); in main()
79 ASSERT_NOEXCEPT(std::declval<months>() + std::declval<year_month_day_last>()); in main()
81 …_TYPE(year_month_day_last, decltype(std::declval<year_month_day_last>() + std::declval<months>())); in main()
82 …ASSERT_SAME_TYPE(year_month_day_last, decltype(std::declval<months>() + std::declval<year_month_da… in main()
89 year_month_day_last ym1 = ym + months{i}; in main()
90 year_month_day_last ym2 = months{i} + ym; in main()
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.nonmembers/
Dplus.pass.cpp46 std::chrono::months offset{6}; in testConstexprMonths()
60 using months = std::chrono::months; in main() typedef
64 ASSERT_NOEXCEPT(std::declval<year_month_day>() + std::declval<months>()); in main()
65 ASSERT_NOEXCEPT(std::declval<months>() + std::declval<year_month_day>()); in main()
67 …ASSERT_SAME_TYPE(year_month_day, decltype(std::declval<year_month_day>() + std::declval<months>())… in main()
68 …ASSERT_SAME_TYPE(year_month_day, decltype(std::declval<months>() + std::declval<year_month_day>())… in main()
75 year_month_day ym1 = ym + months{i}; in main()
76 year_month_day ym2 = months{i} + ym; in main()

12345678910