Home
last modified time | relevance | path

Searched defs:years (Results 1 – 19 of 19) sorted by relevance

/libcore/ojluni/src/main/java/java/time/
DPeriod.java155 private final int years; field in Period
175 public static Period ofYears(int years) { in ofYears()
230 public static Period of(int years, int months, int days) { in of()
264 int years = 0; in from() local
333 int years = parseNumber(text, yearMatch, negate); in parse() local
391 private static Period create(int years, int months, int days) { in create()
405 private Period(int years, int months, int days) { in Period()
551 public Period withYears(int years) { in withYears()
1069 int years = in.readInt(); in readExternal() local
DOffsetDateTime.java1210 public OffsetDateTime plusYears(long years) { in plusYears()
1399 public OffsetDateTime minusYears(long years) { in minusYears()
DZonedDateTime.java1623 public ZonedDateTime plusYears(long years) { in plusYears()
1864 public ZonedDateTime minusYears(long years) { in minusYears()
DLocalDateTime.java1214 public LocalDateTime plusYears(long years) { in plusYears()
1413 public LocalDateTime minusYears(long years) { in minusYears()
DLocalDate.java1668 long years = totalMonths / 12; // safe in until() local
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoPeriodImpl.java118 final int years; field in ChronoPeriodImpl
131 ChronoPeriodImpl(Chronology chrono, int years, int months, int days) { in ChronoPeriodImpl()
395 int years = in.readInt(); in readExternal() local
DHijrahDate.java520 HijrahDate plusYears(long years) { in plusYears()
600 long years = totalMonths / 12; // safe in until() local
DChronology.java704 default ChronoPeriod period(int years, int months, int days) { in period()
DHijrahChronology.java903 Map<Integer, int[]> years = new HashMap<>(); in loadCalendarData() local
985 …rivate int[] createEpochMonths(int epochDay, int minYear, int maxYear, Map<Integer, int[]> years) { in createEpochMonths()
DIsoChronology.java583 public Period period(int years, int months, int days) { in period()
DThaiBuddhistDate.java366 ThaiBuddhistDate plusYears(long years) { in plusYears()
DMinguoDate.java366 MinguoDate plusYears(long years) { in plusYears()
DJapaneseDate.java611 JapaneseDate plusYears(long years) { in plusYears()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DCopticDate.java277 private CopticDate plusYears(long years) { in plusYears()
322 long years = totalMonths / 13; // safe in until() local
/libcore/luni/src/main/java/javax/xml/datatype/
DDatatypeFactory.java233 final BigInteger years, in newDuration()
270 final int years, in newDuration()
DDuration.java892 BigInteger years = (BigInteger) getField(DatatypeConstants.YEARS); in toString() local
/libcore/ojluni/annotations/hiddenapi/java/time/
DOffsetDateTime.java281 public java.time.OffsetDateTime plusYears(long years) { in plusYears()
322 public java.time.OffsetDateTime minusYears(long years) { in minusYears()
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestUmmAlQuraChronology.java325 …st_diffBetweenDates(ChronoLocalDate from, ChronoLocalDate to, long days, long months, long years) { in test_diffBetweenDates()
328 assertEquals(from.until(to, ChronoUnit.YEARS), years); in test_diffBetweenDates() local
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKYear.java548 long years = 20L + Year.MAX_VALUE; in test_plusYears_big() local
680 long years = 20L + Year.MAX_VALUE; in test_minusYears_big() local