/libcore/ojluni/src/main/java/sun/util/calendar/ |
D | LocalGregorianCalendar.java | 75 if (getYear() != localYear) { in setYear() 112 sb.append(getYear()).append('.'); in toString() 223 int y = ldate.getNormalizedYear() - era.getSinceDate().getYear() + 1; in adjustYear() 254 ldate.setNormalizedYear(era.getSinceDate().getYear() + ldate.getYear() - 1); in validate() 256 tmp.setEra(era).setDate(date.getYear(), date.getMonth(), date.getDayOfMonth()); in validate() 262 if (date.getYear() >= eras[0].getSinceDate().getYear()) { in validate() 265 ldate.setNormalizedYear(ldate.getYear()); in validate() 301 int sinceYear = sinceDate.getYear(); in normalize() 342 int y = ldate.getNormalizedYear() - era.getSinceDate().getYear() + 1; in normalize() 366 ldate.setNormalizedYear(ldate.getYear()); in normalizeYear() [all …]
|
D | JulianCalendar.java | 75 return 1 - getYear(); in getNormalizedYear() 77 return getYear(); in getNormalizedYear() 105 sb.append(getYear()).append('-'); in toString()
|
D | ImmutableGregorianDate.java | 49 public int getYear() { in getYear() method in ImmutableGregorianDate 50 return date.getYear(); in getYear()
|
D | Gregorian.java | 49 return getYear(); in getNormalizedYear()
|
D | CalendarDate.java | 122 public int getYear() { in getYear() method in CalendarDate 380 && getYear() == date.getYear() in isSameDate()
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKTemporalAdjusters.java | 116 assertEquals(test.getYear(), 2007); in test_firstDayOfMonth_nonLeap() 129 assertEquals(test.getYear(), 2008); in test_firstDayOfMonth_leap() 150 assertEquals(test.getYear(), 2007); in test_lastDayOfMonth_nonLeap() 163 assertEquals(test.getYear(), 2008); in test_lastDayOfMonth_leap() 184 assertEquals(test.getYear(), month == DECEMBER ? 2008 : 2007); in test_firstDayOfNextMonth_nonLeap() 197 assertEquals(test.getYear(), month == DECEMBER ? 2009 : 2008); in test_firstDayOfNextMonth_leap() 218 assertEquals(test.getYear(), 2007); in test_firstDayOfYear_nonLeap() 231 assertEquals(test.getYear(), 2008); in test_firstDayOfYear_leap() 252 assertEquals(test.getYear(), 2007); in test_lastDayOfYear_nonLeap() 265 assertEquals(test.getYear(), 2008); in test_lastDayOfYear_leap() [all …]
|
D | TCKIsoFields.java | 158 LocalDate parsed = LocalDate.parse(date.getYear() + "-" + qoy + "-" + doq, f); in test_parse_quarters() 169 LocalDate parsed = LocalDate.parse(date.getYear() + "-" + qoy + "-" + doq, f); in test_parse_quarters_SMART() 180 LocalDate parsed = LocalDate.parse(date.getYear() + "-" + qoy + "-" + doq, f); in test_parse_quarters_LENIENT() 449 while (date.getYear() < 2400) { in test_loop() 451 if (date.getYear() != year) { in test_loop() 452 year = date.getYear(); in test_loop()
|
D | TCKWeekFields.java | 390 String str = date.getYear() + ":" + date.getMonthValue() + ":" + in test_parse_resolve_localizedWom() 414 String str = date.getYear() + ":" + date.getMonthValue() + ":" + j + ":" + dow; in test_parse_resolve_localizedWom_lenient() 435 assertEquals(date.getYear(), 2012); in test_parse_resolve_localizedWom_strict() 458 String str = date.getYear() + ":" + date.getMonthValue() + ":" + in test_parse_resolve_localizedWomDow() 483 String str = date.getYear() + ":" + date.getMonthValue() + ":" + j + ":" + dow; in test_parse_resolve_localizedWomDow_lenient() 504 String str = date.getYear() + ":" + in test_parse_resolve_localizedWoy() 527 String str = date.getYear() + ":" + j + ":" + dow; in test_parse_resolve_localizedWoy_lenient() 547 assertEquals(date.getYear(), 2012); in test_parse_resolve_localizedWoy_strict() 569 String str = date.getYear() + ":" + date.getMonthValue() + ":" + in test_parse_resolve_localizedWoyDow() 593 String str = date.getYear() + ":" + j + ":" + dow; in test_parse_resolve_localizedWoyDow_lenient()
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | OldDateFormatTest.java | 229 assertEquals(current.getYear(), date.getYear()); in test_parseLString() 262 assertEquals(current.getYear(), date.getYear()); in test_parseLString() 290 assertEquals(current.getYear(), date.getYear()); in test_parseLString() 304 assertEquals(current.getYear(), date.getYear()); in test_parseLString() 317 assertEquals(70, date.getYear()); in test_parseLString() 337 assertEquals(current.getYear(), date.getYear()); in test_parseLString() 392 assertEquals("Years are different.", current.getYear(), result.getYear()); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 422 assertEquals("Years are different.", current.getYear(), result.getYear()); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition()
|
/libcore/ojluni/src/main/java/java/util/ |
D | JapaneseImperialCalendar.java | 271 date.setDate(transitionDate.getYear(), BaseCalendar.JANUARY, 1); in transitionDate.getYear() 276 date.setDate(transitionDate.getYear(), BaseCalendar.DECEMBER, 31); in transitionDate.getYear() 282 int y = lgd.getYear(); 424 set(YEAR, d.getYear()); in add() 432 set(YEAR, d.getYear()); in add() 642 int year = jdate.getYear(); in roll() 710 if (jdate.getYear() == 1) { in roll() 716 if (transition.getYear() == jdate.getNormalizedYear()) { in roll() 758 int year = jdate.getYear(); in roll() 803 if (!(d.getEra() == jdate.getEra() && d.getYear() == jdate.getYear())) { in roll() [all …]
|
D | Date.java | 613 defaultCenturyStart = gcal.getCalendarDate().getYear() - 80; in parse() 671 public int getYear() { in getYear() method in Date 672 return normalize().getYear() - 1900; in getYear() 1070 sb.append(' ').append(date.getYear()); // yyyy in toString() 1148 sb.append(date.getYear()).append(' '); // yyyy in toGMTString()
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
D | XMLGregorianCalendar.java | 479 public abstract int getYear(); in getYear() method in XMLGregorianCalendar 692 return gc.getYear() in hashCode()
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestOffsetDateTime_instants.java | 101 assertEquals(test.getYear(), 1970); in factory_ofInstant_allSecsInDay() 159 assertEquals(test.getYear(), Year.MIN_VALUE); in factory_ofInstant_minWithMinOffset() 175 assertEquals(test.getYear(), Year.MIN_VALUE); in factory_ofInstant_minWithMaxOffset() 191 assertEquals(test.getYear(), Year.MAX_VALUE); in factory_ofInstant_maxWithMinOffset() 207 assertEquals(test.getYear(), Year.MAX_VALUE); in factory_ofInstant_maxWithMaxOffset()
|
D | TestLocalDate.java | 98 if (newDayOfMonth <= date.getMonth().length(isIsoLeap(date.getYear()))) { in next() 103 date = date.withYear(date.getYear() + 1); in next() 115 date = date.withYear(date.getYear() - 1); in previous() 117 return date.withDayOfMonth(date.getMonth().length(isIsoLeap(date.getYear()))); in previous()
|
/libcore/luni/src/test/java/tests/security/cert/ |
D | CertificateRevocationExceptionTest.java | 119 firstDate.setYear(firstDate.getYear() + 1); 129 firstDate.setYear(firstDate.getYear() + 1);
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | JapaneseChronology.java | 357 int gregorianYear = jera.getPrivateEra().getSinceDate().getYear() + yearOfEra - 1; in prolepticYear() 410 int startYear = getCurrentEra().getPrivateEra().getSinceDate().getYear(); in range() 423 return ValueRange.of(JapaneseDate.MEIJI_6_ISODATE.getYear(), Year.MAX_VALUE); in range() 469 return era.getPrivateEra().getSinceDate().getYear() + yearOfEra - 1; in prolepticYearLenient()
|
D | JapaneseDate.java | 288 if (era.getPrivateEra() != jdate.getEra() || yearOfEra != jdate.getYear()) { in ofYearDay() 329 this.yearOfEra = jdate.getYear(); in JapaneseDate() 504 int year = isoDate.getYear(); in toPrivateJapaneseDate() 506 year -= sunEra.getSinceDate().getYear() - 1; in toPrivateJapaneseDate()
|
/libcore/ojluni/src/main/java/java/util/zip/ |
D | ZipUtils.java | 98 int year = d.getYear() + 1900; in javaToDosTime()
|
/libcore/ojluni/src/main/java/java/sql/ |
D | Time.java | 157 public int getYear() { in getYear() method in Time
|
D | Date.java | 157 int year = super.getYear() + 1900; in toString()
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | IsoChronologyTest.java | 59 assertEquals(values[0], localDate.getYear()); in test_dateYear()
|
/libcore/ojluni/src/main/java/java/time/ |
D | YearMonth.java | 194 return YearMonth.of(now.getYear(), now.getMonth()); in now() 418 … return (getYear() <= 0 ? ValueRange.of(1, Year.MAX_VALUE + 1) : ValueRange.of(1, Year.MAX_VALUE)); in range() 507 public int getYear() { in getYear() method in YearMonth
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKLocalizedPrinterParser.java | 146 … Date oldDate = new Date(date.getYear() - 1900, date.getMonthValue() - 1, date.getDayOfMonth()); in test_date_print() 158 … Date oldDate = new Date(date.getYear() - 1900, date.getMonthValue() - 1, date.getDayOfMonth()); in test_date_parse()
|
/libcore/ojluni/src/main/java/java/nio/file/attribute/ |
D | FileTime.java | 429 year = ldt.getYear() + (int)hi * 10000; in toString() 436 year = ldt.getYear() + (int)hi * 10000; in toString()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | DateTest.java | 284 assertEquals("Returned incorrect year", 98, d.getYear()); in test_getYear() 423 assertEquals("Set incorrect year", 8, d.getYear()); in test_setYearI()
|