HomeSort by relevance Sort by last modified time
    Searched refs:YEARS (Results 26 - 50 of 70) sorted by null

12 3

  /external/icu/android_icu4j/src/main/java/android/icu/impl/duration/
BasicDurationFormat.java 96 javax.xml.datatype.DatatypeConstants.YEARS,
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/
BasicDurationFormat.java 94 javax.xml.datatype.DatatypeConstants.YEARS,
  /libcore/ojluni/src/main/java/java/time/temporal/
IsoFields.java 73 import static java.time.temporal.ChronoUnit.YEARS;
108 * <h3>Week based years</h3>
134 * There are 52 weeks in most week-based years, however on occasion there are 53 weeks.
139 * <caption>Examples of Week based Years</caption>
255 * The unit that represents week-based-years for the purpose of addition and subtraction.
257 * This allows a number of week-based-years to be added to, or subtracted from, a date.
262 * The rules for addition add the number of week-based-years to the existing value
386 return YEARS;
697 return (R) temporal.plus(amount / 256, YEARS)
  /libcore/ojluni/src/test/java/time/tck/java/time/
TCKPeriod.java 64 import static java.time.temporal.ChronoUnit.YEARS;
169 if (unit == YEARS) {
178 list.add(YEARS);
203 return Collections.<TemporalUnit>singletonList(YEARS);
    [all...]
TCKLocalDateTime.java 103 import static java.time.temporal.ChronoUnit.YEARS;
    [all...]
TCKInstant.java 75 import static java.time.temporal.ChronoUnit.YEARS;
655 {Instant.ofEpochSecond(1, 123_456_789), YEARS},
701 {MockSimplePeriod.of(2, YEARS)},
    [all...]
TCKLocalTime.java 88 import static java.time.temporal.ChronoUnit.YEARS;
612 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoUnit.YEARS), false);
    [all...]
TCKDuration.java     [all...]
TCKOffsetTime.java 570 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoUnit.YEARS), false);
    [all...]
TCKOffsetDateTime.java 587 assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoUnit.YEARS), true);
    [all...]
TCKZonedDateTime.java     [all...]
  /libcore/ojluni/src/test/java/time/tck/java/time/chrono/
TCKChronoLocalDate.java 264 dates.add(date.minus(1, ChronoUnit.YEARS));
272 dates.add(date.plus(1, ChronoUnit.YEARS));
TCKChronoLocalDateTime.java 267 dates.add(date.minus(1, ChronoUnit.YEARS));
283 dates.add(date.plus(1, ChronoUnit.YEARS));
TCKChronoZonedDateTime.java 270 dates.add(date.minus(1, ChronoUnit.YEARS));
286 dates.add(date.plus(1, ChronoUnit.YEARS));
CopticDate.java 266 case YEARS: return plusYears(amountToAdd);
277 private CopticDate plusYears(long years) {
278 return plusMonths(Math.multiplyExact(years, 13));
322 long years = totalMonths / 13; // safe local
324 return Period.of(Math.toIntExact(years), months, days);
TCKMinguoChronology.java 212 hdt = hdt.plus(1, ChronoUnit.YEARS);
    [all...]
  /external/icu/android_icu4j/src/main/java/android/icu/text/
RelativeDateTimeFormatter.java 55 * fmt.format(3.2, Direction.LAST, RelativeUnit.YEARS); // "3.2 years ago"
136 * Years
138 YEARS,
267 * "in 5 years".
503 case YEAR: relunit = RelativeUnit.YEARS; break;
855 YEAR(RelativeUnit.YEARS, AbsoluteUnit.YEAR),
    [all...]
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
RelativeDateTimeFormatter.java 54 * fmt.format(3.2, Direction.LAST, RelativeUnit.YEARS); // "3.2 years ago"
148 * Years
151 YEARS,
301 * "in 5 years".
560 case YEAR: relunit = RelativeUnit.YEARS; break;
    [all...]
  /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/
ICUDurationTest.java 82 if (y >= 0) { fields.put(DatatypeConstants.YEARS, y); }
190 int years = cal.get(Calendar.YEAR) - 1970; // year of Date(0) local
191 expect = years + " anni fa";
  /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/
ICUDurationTest.java 81 if (y >= 0) { fields.put(DatatypeConstants.YEARS, y); }
189 int years = cal.get(Calendar.YEAR) - 1970; // year of Date(0) local
190 expect = years + " anni fa";
  /libcore/ojluni/src/main/java/java/time/
LocalDate.java 121 * system, in which today's rules for leap years are applied for all time.
156 * There are 7 leap years from 1970 to 2000.
313 // adjust negative years to positive for calculation
522 * <li>{@code YEARS}
688 * system, in which today's rules for leap years are applied for all time.
1668 long years = totalMonths \/ 12; \/\/ safe local
    [all...]
  /libcore/ojluni/src/test/java/time/test/java/time/chrono/
TestUmmAlQuraChronology.java 310 // Data provider to get the difference between two dates in terms of days, months and years
322 // Test to verify the difference between two given dates in terms of days, months and years
324 public void test_diffBetweenDates(ChronoLocalDate from, ChronoLocalDate to, long days, long months, long years) {
327 assertEquals(from.until(to, ChronoUnit.YEARS), years); local
461 hdt = hdt.plus(1, ChronoUnit.YEARS);
534 // Data provider to verify that a given hijrah year is outside the range of supported years
    [all...]
  /external/caliper/lib/
joda-time-2.1.jar 
  /prebuilts/tools/common/m2/repository/joda-time/joda-time/2.8.1/
joda-time-2.8.1.jar 
  /prebuilts/tools/common/m2/repository/joda-time/joda-time/2.9.1/
joda-time-2.9.1.jar 

Completed in 2461 milliseconds

12 3