Home
last modified time | relevance | path

Searched full:years (Results 1 – 25 of 4196) sorted by relevance

12345678910>>...168

/aosp_15_r20/out/soong/.intermediates/libcore/core_oj_api_files/gen/gensrcs/libcore/ojluni/src/main/java/java/time/
DPeriod.java66 import static java.time.temporal.ChronoUnit.YEARS;
94 * such as '2 years, 3 months and 4 days'.
96 * This class models a quantity or amount of time in terms of years, months and days.
111 * The supported units of a period are {@link ChronoUnit#YEARS YEARS},
117 * system, in which today's rules for leap years are applied for all time.
148 private static final List<TemporalUnit> SUPPORTED_UNITS = List.of(YEARS, MONTHS, DAYS);
151 * The number of years.
153 private final int years; field in Period
165 * Obtains a {@code Period} representing a number of years.
167 * The resulting period will have the specified years.
[all …]
/aosp_15_r20/libcore/ojluni/src/main/java/java/time/
H A DPeriod.java66 import static java.time.temporal.ChronoUnit.YEARS;
94 * such as '2 years, 3 months and 4 days'.
96 * This class models a quantity or amount of time in terms of years, months and days.
111 * The supported units of a period are {@link ChronoUnit#YEARS YEARS},
117 * system, in which today's rules for leap years are applied for all time.
148 private static final List<TemporalUnit> SUPPORTED_UNITS = List.of(YEARS, MONTHS, DAYS);
151 * The number of years.
153 private final int years; field in Period
165 * Obtains a {@code Period} representing a number of years.
167 * The resulting period will have the specified years.
[all …]
/aosp_15_r20/out/soong/.intermediates/libcore/core_oj_api_files/gen/17/libcore/ojluni/src/main/java/java/time/
DPeriod.java66 import static java.time.temporal.ChronoUnit.YEARS;
94 * such as '2 years, 3 months and 4 days'.
96 * This class models a quantity or amount of time in terms of years, months and days.
111 * The supported units of a period are {@link ChronoUnit#YEARS YEARS},
117 * system, in which today's rules for leap years are applied for all time.
148 private static final List<TemporalUnit> SUPPORTED_UNITS = List.of(YEARS, MONTHS, DAYS);
151 * The number of years.
153 private final int years; field in Period
165 * Obtains a {@code Period} representing a number of years.
167 * The resulting period will have the specified years.
[all …]
/aosp_15_r20/external/threetenbp/src/main/java/org/threeten/bp/
H A DPeriod.java36 import static org.threeten.bp.temporal.ChronoUnit.YEARS;
58 * A date-based amount of time, such as '2 years, 3 months and 4 days'.
60 * This class models a quantity or amount of time in terms of years, months and days.
75 * The supported units of a period are {@link ChronoUnit#YEARS YEARS},
85 * The months and years fields may be {@linkplain #normalized() normalized}.
110 * The number of years.
112 private final int years; field in Period
124 * Obtains a {@code Period} representing a number of years.
126 * The resulting period will have the specified years.
129 * @param years the number of years, positive or negative
[all …]
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/date_time/test/gregorian/
Dtestgreg_durations.cpp87 years y1(2), y2(4); in main()
88 check("months & years addable", months(25) == m3 + y1); in main()
90 check("months & years addable", months(25) == m3); in main()
91 check("months & years subtractable", months(-23) == m3 - y2); in main()
93 check("months & years subtractable", months(-23) == m3); in main()
109 /*** years ***/ in main()
111 years y1(2), y2(4), y3(1); in main()
112 check("years & years addable", years(3) == y3 + y1); in main()
114 check("years & years addable", years(3) == y3); in main()
115 check("years & years subtractable", years(-1) == y3 - y2); in main()
[all …]
/aosp_15_r20/out/soong/.intermediates/libcore/core_oj_api_files/gen/gensrcs/libcore/ojluni/src/main/java/java/time/chrono/
DChronoPeriodImpl.java62 import static java.time.temporal.ChronoUnit.YEARS;
107 private static final List<TemporalUnit> SUPPORTED_UNITS = List.of(YEARS, MONTHS, DAYS);
115 * The number of years.
117 final int years; field in ChronoPeriodImpl
130 ChronoPeriodImpl(Chronology chrono, int years, int months, int days) { in ChronoPeriodImpl() argument
133 this.years = years; in ChronoPeriodImpl()
141 if (unit == ChronoUnit.YEARS) { in get()
142 return years; in get()
165 return years == 0 && months == 0 && days == 0; in isZero()
170 return years < 0 || months < 0 || days < 0; in isNegative()
[all …]
/aosp_15_r20/out/soong/.intermediates/libcore/core_oj_api_files/gen/16/libcore/ojluni/src/main/java/java/time/chrono/
DChronoPeriodImpl.java62 import static java.time.temporal.ChronoUnit.YEARS;
107 private static final List<TemporalUnit> SUPPORTED_UNITS = List.of(YEARS, MONTHS, DAYS);
115 * The number of years.
117 final int years; field in ChronoPeriodImpl
130 ChronoPeriodImpl(Chronology chrono, int years, int months, int days) { in ChronoPeriodImpl() argument
133 this.years = years; in ChronoPeriodImpl()
141 if (unit == ChronoUnit.YEARS) { in get()
142 return years; in get()
165 return years == 0 && months == 0 && days == 0; in isZero()
170 return years < 0 || months < 0 || days < 0; in isNegative()
[all …]
/aosp_15_r20/libcore/ojluni/src/main/java/java/time/chrono/
H A DChronoPeriodImpl.java62 import static java.time.temporal.ChronoUnit.YEARS;
107 private static final List<TemporalUnit> SUPPORTED_UNITS = List.of(YEARS, MONTHS, DAYS);
115 * The number of years.
117 final int years; field in ChronoPeriodImpl
130 ChronoPeriodImpl(Chronology chrono, int years, int months, int days) { in ChronoPeriodImpl() argument
133 this.years = years; in ChronoPeriodImpl()
141 if (unit == ChronoUnit.YEARS) { in get()
142 return years; in get()
165 return years == 0 && months == 0 && days == 0; in isZero()
170 return years < 0 || months < 0 || days < 0; in isNegative()
[all …]
/aosp_15_r20/external/googleapis/google/ads/googleads/v14/enums/
H A Dreach_plan_age_range.proto40 // Between 18 and 24 years old.
43 // Between 18 and 34 years old.
46 // Between 18 and 44 years old.
49 // Between 18 and 49 years old.
52 // Between 18 and 54 years old.
55 // Between 18 and 64 years old.
58 // Between 18 and 65+ years old.
61 // Between 21 and 34 years old.
64 // Between 25 and 34 years old.
67 // Between 25 and 44 years old.
[all …]
H A Dlead_form_field_user_input_type.proto159 // Question: "How many years have you been in business?"
177 // Question: "Are you over 18 years of age?"
183 // Question: "Are you over 19 years of age?"
189 // Question: "Are you over 20 years of age?"
195 // Question: "Are you over 21 years of age?"
201 // Question: "Are you over 22 years of age?"
207 // Question: "Are you over 23 years of age?"
213 // Question: "Are you over 24 years of age?"
219 // Question: "Are you over 25 years of age?"
225 // Question: "Are you over 26 years of age?"
[all …]
/aosp_15_r20/external/googleapis/google/ads/googleads/v16/enums/
H A Dreach_plan_age_range.proto40 // Between 18 and 24 years old.
43 // Between 18 and 34 years old.
46 // Between 18 and 44 years old.
49 // Between 18 and 49 years old.
52 // Between 18 and 54 years old.
55 // Between 18 and 64 years old.
58 // Between 18 and 65+ years old.
61 // Between 21 and 34 years old.
64 // Between 25 and 34 years old.
67 // Between 25 and 44 years old.
[all …]
H A Dlead_form_field_user_input_type.proto159 // Question: "How many years have you been in business?"
177 // Question: "Are you over 18 years of age?"
183 // Question: "Are you over 19 years of age?"
189 // Question: "Are you over 20 years of age?"
195 // Question: "Are you over 21 years of age?"
201 // Question: "Are you over 22 years of age?"
207 // Question: "Are you over 23 years of age?"
213 // Question: "Are you over 24 years of age?"
219 // Question: "Are you over 25 years of age?"
225 // Question: "Are you over 26 years of age?"
[all …]
/aosp_15_r20/external/googleapis/google/ads/googleads/v15/enums/
H A Dreach_plan_age_range.proto40 // Between 18 and 24 years old.
43 // Between 18 and 34 years old.
46 // Between 18 and 44 years old.
49 // Between 18 and 49 years old.
52 // Between 18 and 54 years old.
55 // Between 18 and 64 years old.
58 // Between 18 and 65+ years old.
61 // Between 21 and 34 years old.
64 // Between 25 and 34 years old.
67 // Between 25 and 44 years old.
[all …]
H A Dlead_form_field_user_input_type.proto159 // Question: "How many years have you been in business?"
177 // Question: "Are you over 18 years of age?"
183 // Question: "Are you over 19 years of age?"
189 // Question: "Are you over 20 years of age?"
195 // Question: "Are you over 21 years of age?"
201 // Question: "Are you over 22 years of age?"
207 // Question: "Are you over 23 years of age?"
213 // Question: "Are you over 24 years of age?"
219 // Question: "Are you over 25 years of age?"
225 // Question: "Are you over 26 years of age?"
[all …]
/aosp_15_r20/external/icu/icu4j/main/core/src/test/resources/com/ibm/icu/dev/test/duration/testdata/
H A Dtestdata_en.txt21 3 years ago
22 2 years ago
24 0 years
26 2 years from now
27 3 years from now
28 5 years from now
29 10 years from now
30 11 years from now
31 12 years from now
32 20 years from now
[all …]
/aosp_15_r20/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/testdata/
H A Dtestdata_en.txt21 3 years ago
22 2 years ago
24 0 years
26 2 years from now
27 3 years from now
28 5 years from now
29 10 years from now
30 11 years from now
31 12 years from now
32 20 years from now
[all …]
/aosp_15_r20/external/llvm-libc/src/time/
H A Dtime_utils.cpp22 int64_t years = *remainingDays / daysPerYears; in computeRemainingYears() local
23 if (years == quotientYears) in computeRemainingYears()
24 years--; in computeRemainingYears()
25 *remainingDays -= years * daysPerYears; in computeRemainingYears()
26 return years; in computeRemainingYears()
35 // makes it easier to count how many leap years have passed using division.
37 // While calculating numbers of years in the days, the following algorithm
38 // subdivides the days into the number of 400 years, the number of 100 years and
39 // the number of 4 years. These numbers of cycle years are used in calculating
41 // and isLeapYear(). Then compute the total number of years in days from these
[all …]
/aosp_15_r20/external/threetenbp/src/main/java/org/threeten/bp/chrono/
H A DChronoPeriodImpl.java36 import static org.threeten.bp.temporal.ChronoUnit.YEARS;
65 private final int years; field in ChronoPeriodImpl
69 public ChronoPeriodImpl(Chronology chronology, int years, int months, int days) { in ChronoPeriodImpl() argument
71 this.years = years; in ChronoPeriodImpl()
79 if (unit == YEARS) { in get()
80 return years; in get()
93 return Collections.unmodifiableList(Arrays.<TemporalUnit>asList(YEARS, MONTHS, DAYS)); in getUnits()
109 Jdk8Methods.safeAdd(years, amount.years), in plus()
124 Jdk8Methods.safeSubtract(years, amount.years), in minus()
136 Jdk8Methods.safeMultiply(years, scalar), in multipliedBy()
[all …]
/aosp_15_r20/external/python/dateutil/dateutil/
Drelativedelta.py45 years, months, weeks, days, hours, minutes, seconds, microseconds:
106 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)):
173 raise ValueError("Non-integer years and months are "
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,
[all …]
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/chrono/example/
Dtime2_demo_output.txt48 100 years expressed as years = 100
49 100 years expressed as nanoseconds = 3155695200000000000
50 200 years expressed as nanoseconds = 6311390400000000000
51 300 years expressed as nanoseconds = inf
54 100 years expressed as picoseconds = inf
55 0.1 years expressed as picoseconds = 3155695200000000000
56 200 million years ago encoded in years: -200000000
57 200 million years ago encoded in days: -73048500000
58 200 million years ago encoded in millennium: -200000
66 292 years of hours = 2559672hr
[all …]
/aosp_15_r20/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 …]
/aosp_15_r20/external/icu/icu4j/main/core/src/test/java/com/ibm/icu/dev/test/format/
H A DRelativeDateTimeFormatterTest.java60 {0.0, Direction.NEXT, RelativeUnit.YEARS, "in 0 years"}, in TestRelativeDateWithQuantity()
61 {0.5, Direction.NEXT, RelativeUnit.YEARS, "in 0.5 years"}, in TestRelativeDateWithQuantity()
62 {1.0, Direction.NEXT, RelativeUnit.YEARS, "in 1 year"}, in TestRelativeDateWithQuantity()
63 {2.0, Direction.NEXT, RelativeUnit.YEARS, "in 2 years"}, in TestRelativeDateWithQuantity()
89 {0.0, Direction.LAST, RelativeUnit.YEARS, "0 years ago"}, in TestRelativeDateWithQuantity()
90 {0.5, Direction.LAST, RelativeUnit.YEARS, "0.5 years ago"}, in TestRelativeDateWithQuantity()
91 {1.0, Direction.LAST, RelativeUnit.YEARS, "1 year ago"}, in TestRelativeDateWithQuantity()
92 {2.0, Direction.LAST, RelativeUnit.YEARS, "2 years ago"}, in TestRelativeDateWithQuantity()
130 {0.0, Direction.NEXT, RelativeUnit.YEARS, "In 0 years"}, in TestRelativeDateWithQuantityCaps()
131 {0.5, Direction.NEXT, RelativeUnit.YEARS, "In 0.5 years"}, in TestRelativeDateWithQuantityCaps()
[all …]
/aosp_15_r20/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
H A DRelativeDateTimeFormatterTest.java63 {0.0, Direction.NEXT, RelativeUnit.YEARS, "in 0 years"}, in TestRelativeDateWithQuantity()
64 {0.5, Direction.NEXT, RelativeUnit.YEARS, "in 0.5 years"}, in TestRelativeDateWithQuantity()
65 {1.0, Direction.NEXT, RelativeUnit.YEARS, "in 1 year"}, in TestRelativeDateWithQuantity()
66 {2.0, Direction.NEXT, RelativeUnit.YEARS, "in 2 years"}, in TestRelativeDateWithQuantity()
92 {0.0, Direction.LAST, RelativeUnit.YEARS, "0 years ago"}, in TestRelativeDateWithQuantity()
93 {0.5, Direction.LAST, RelativeUnit.YEARS, "0.5 years ago"}, in TestRelativeDateWithQuantity()
94 {1.0, Direction.LAST, RelativeUnit.YEARS, "1 year ago"}, in TestRelativeDateWithQuantity()
95 {2.0, Direction.LAST, RelativeUnit.YEARS, "2 years ago"}, in TestRelativeDateWithQuantity()
133 {0.0, Direction.NEXT, RelativeUnit.YEARS, "In 0 years"}, in TestRelativeDateWithQuantityCaps()
134 {0.5, Direction.NEXT, RelativeUnit.YEARS, "In 0.5 years"}, in TestRelativeDateWithQuantityCaps()
[all …]
/aosp_15_r20/external/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.nonmembers/
H A Dminus.pass.cpp14 // constexpr year operator-(const year& x, const years& y) noexcept;
17 // constexpr years operator-(const year& x, const year& y) noexcept;
19 // [years{0}, years{11}] satisfying y + m == x.
21 // [Example: January - February == years{11}. —end example]
44 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()
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/fmt/
Dexample_test.go69 n, err := fmt.Sscanf("Kim is 22 years old", "%s is %d years old", &name, &age)
81 fmt.Print(name, " is ", age, " years old.\n")
87 // Kim is 22 years old.
92 fmt.Println(name, "is", age, "years old.")
98 // Kim is 22 years old.
103 fmt.Printf("%s is %d years old.\n", name, age)
109 // Kim is 22 years old.
114 s := fmt.Sprint(name, " is ", age, " years old.\n")
119 // Kim is 22 years old.
124 s := fmt.Sprintln(name, "is", age, "years old.")
[all …]

12345678910>>...168