Home
last modified time | relevance | path

Searched defs:year (Results 1 – 25 of 78) sorted by relevance

1234

/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestJapaneseChronoImpl.java141 "different DAY_OF_YEAR values in " + era + ", year: " + year); in test_dayOfYearVsCalendar() local
143 "different maximum for DAY_OF_YEAR in " + era + ", year: " + year); in test_dayOfYearVsCalendar() local
145 "different minimum for DAY_OF_YEAR in " + era + ", year: " + year); in test_dayOfYearVsCalendar() local
DTestExampleCode.java93 int year = now1.get(ChronoField.YEAR); in test_chronoPackageExample() local
153 int year = now1.get(ChronoField.YEAR); in test_calendarPackageExample() local
/libcore/ojluni/src/test/java/time/tck/java/time/
DTestIsoChronology.java179 public void test_badDates(int year, int month, int dom) { in test_badDates()
185 int year = 5; in test_date_withEra() local
190 assertEquals(test.get(ChronoField.YEAR_OF_ERA), year); in test_date_withEra() local
196 assertEquals(test.get(YEAR_OF_ERA), year); in test_date_withEra() local
271 public void test_isLeapYear(int year, boolean isLeapYear) { in test_isLeapYear()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKResolverStyle.java110 …public void test_resolverStyle(String str, ResolverStyle style, Class<?> expectedEx, int year, int… in test_resolverStyle()
127 assertEquals(accessor.get(ChronoField.YEAR_OF_ERA), year); in test_resolverStyle() local
DTCKDateTimeFormatters.java227 Integer year, Integer month, Integer day, String offsetId, String zoneId, in test_print_isoLocalDate()
244 Integer year, Integer month, Integer day, String offsetId, String zoneId, in test_parse_isoLocalDate()
321 Integer year, Integer month, Integer day, String offsetId, String zoneId, in test_print_isoOffsetDate()
338 Integer year, Integer month, Integer day, String offsetId, String zoneId, in test_parse_isoOffsetDate()
379 Integer year, Integer month, Integer day, String offsetId, String zoneId, in test_print_isoDate()
396 Integer year, Integer month, Integer day, String offsetId, String zoneId, in test_parse_isoDate()
671 Integer year, Integer month, Integer day, in test_print_isoLocalDateTime()
689 Integer year, Integer month, Integer day, in test_parse_isoLocalDateTime()
750 Integer year, Integer month, Integer day, in test_print_isoOffsetDateTime()
768 Integer year, Integer month, Integer day, in test_parse_isoOffsetDateTime()
[all …]
/libcore/ojluni/src/main/java/java/sql/
DDate.java57 public Date(int year, int month, int day) { in Date()
133 int year = Integer.parseInt(yyyy); in valueOf() local
157 int year = super.getYear() + 1900; in toString() local
DTimestamp.java87 public Timestamp(int year, int month, int date, in Timestamp()
175 int year = 0; in valueOf() local
276 int year = super.getYear() + 1900; in toString() local
/libcore/ojluni/src/main/java/sun/util/calendar/
DBaseCalendar.java168 protected final boolean hit(int year) { in hit()
184 protected void setCache(int year, long jan1, int len) { in setCache()
274 int year = bdate.getNormalizedYear(); in normalizeMonth() local
331 private int getMonthLength(int year, int month) { in getMonthLength()
345 final long getDayOfYear(int year, int month, int dayOfMonth) { in getDayOfYear()
363 public long getFixedDate(int year, int month, int dayOfMonth, BaseCalendar.Date cache) { in getFixedDate()
421 int year; in getCalendarDateFromFixedDate() local
495 int year; in getGregorianYearFromFixedDate() local
DJulianCalendar.java84 public void setNormalizedYear(int year) { in setNormalizedYear()
188 int year; in getCalendarDateFromFixedDate() local
220 int year = (int) CalendarUtils.floorDivide(4 * (fixedDate - JULIAN_EPOCH) + 1464, 1461); in getYearFromFixedDate() local
DCalendarDate.java68 private int year; field in CalendarDate
126 public CalendarDate setYear(int year) { in setYear()
305 public CalendarDate setDate(int year, int month, int dayOfMonth) { in setDate()
312 public CalendarDate addDate(int year, int month, int dayOfMonth) { in addDate()
/libcore/ojluni/src/test/java/time/test/java/time/
DTestOffsetDateTime_instants.java133 int year = Year.MIN_VALUE - 1; in factory_ofInstant_tooLow() local
146 long year = Year.MAX_VALUE + 1L; in factory_ofInstant_tooBig() local
155 int year = Year.MIN_VALUE; in factory_ofInstant_minWithMinOffset() local
171 int year = Year.MIN_VALUE; in factory_ofInstant_minWithMaxOffset() local
187 int year = Year.MAX_VALUE; in factory_ofInstant_maxWithMinOffset() local
203 int year = Year.MAX_VALUE; in factory_ofInstant_maxWithMaxOffset() local
DAbstractTest.java75 protected static boolean isIsoLeap(long year) { in isIsoLeap()
/libcore/ojluni/annotations/hiddenapi/sun/util/calendar/
DBaseCalendar.java59 private int getMonthLength(int year, int month) { in getMonthLength()
67 final long getDayOfYear(int year, int month, int dayOfMonth) { in getDayOfYear()
76 int year, int month, int dayOfMonth, sun.util.calendar.BaseCalendar.Date cache) { in getFixedDate()
194 protected final boolean hit(int year) { in hit()
210 protected void setCache(int year, long jan1, int len) { in setCache()
DCalendarDate.java53 public sun.util.calendar.CalendarDate setYear(int year) { in setYear()
158 public sun.util.calendar.CalendarDate setDate(int year, int month, int dayOfMonth) { in setDate()
162 public sun.util.calendar.CalendarDate addDate(int year, int month, int dayOfMonth) { in addDate()
284 private int year; field in CalendarDate
DImmutableGregorianDate.java47 public sun.util.calendar.CalendarDate setYear(int year) { in setYear()
143 public sun.util.calendar.CalendarDate setDate(int year, int month, int dayOfMonth) { in setDate()
147 public sun.util.calendar.CalendarDate addDate(int year, int month, int dayOfMonth) { in addDate()
/libcore/ojluni/src/main/java/java/time/
DYearMonth.java144 private final int year; field in YearMonth
206 public static YearMonth of(int year, Month month) { in of()
219 public static YearMonth of(int year, int month) { in of()
299 private YearMonth(int year, int month) { in YearMonth()
702 public YearMonth withYear(int year) { in withYear()
1239 int year = in.readInt(); in readExternal() local
DLocalDate.java163 private final int year; field in LocalDate
239 public static LocalDate of(int year, Month month, int dayOfMonth) { in of()
259 public static LocalDate of(int year, int month, int dayOfMonth) { in of()
279 public static LocalDate ofYearDay(int year, int dayOfYear) { in ofYearDay()
335 int year = YEAR.checkValidIntValue(yearEst); in ofEpochDay() local
407 private static LocalDate create(int year, int month, int dayOfMonth) { in create()
440 private static LocalDate resolvePreviousValid(int year, int month, int day) { in resolvePreviousValid()
462 private LocalDate(int year, int month, int dayOfMonth) { in LocalDate()
1050 public LocalDate withYear(int year) { in withYear()
2070 int year = in.readInt(); in readExternal() local
/libcore/ojluni/src/main/java/java/util/
DGregorianCalendar.java640 public GregorianCalendar(int year, int month, int dayOfMonth) { in GregorianCalendar()
657 public GregorianCalendar(int year, int month, int dayOfMonth, int hourOfDay, in GregorianCalendar()
677 public GregorianCalendar(int year, int month, int dayOfMonth, int hourOfDay, in GregorianCalendar()
698 GregorianCalendar(int year, int month, int dayOfMonth, in GregorianCalendar()
827 public boolean isLeapYear(int year) { in isLeapYear()
958 int year = internalGet(YEAR); local
1700 int year = gc.cdate.getNormalizedYear(); in getActualMinimum() local
2087 int year = get(YEAR); // implicitly calls complete() in getWeekYear() local
2390 int year; in computeFields() local
2676 int year = isSet(YEAR) ? internalGet(YEAR) : EPOCH_YEAR; in computeTime() local
[all …]
DDate.java196 public Date(int year, int month, int date) { in Date()
219 public Date(int year, int month, int date, int hrs, int min) { in Date()
243 public Date(int year, int month, int date, int hrs, int min, int sec) { in Date()
317 public static long UTC(int year, int month, int date, in UTC()
455 int year = Integer.MIN_VALUE; in parse() local
691 public void setYear(int year) { in setYear()
1295 private static final BaseCalendar getCalendarSystem(int year) { in getCalendarSystem()
DSimpleTimeZone.java361 public void setStartYear(int year) in setStartYear()
563 int year = cdate.getNormalizedYear(); in getOffsets() local
604 public int getOffset(int era, int year, int month, int day, int dayOfWeek, in getOffset()
672 private int getOffset(BaseCalendar cal, BaseCalendar.Date cdate, int year, long time) { in getOffset()
724 private long getStart(BaseCalendar cal, BaseCalendar.Date cdate, int year) { in getStart()
733 private long getEnd(BaseCalendar cal, BaseCalendar.Date cdate, int year) { in getEnd()
746 int mode, int year, int month, int dayOfMonth, in getTransition()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKTemporalAdjusters.java338 …public void test_dayOfWeekInMonth_positive(int year, int month, DayOfWeek dow, LocalDate expected)… in test_dayOfWeekInMonth_positive()
367 public void test_dayOfWeekInMonth_zero(int year, int month, DayOfWeek dow, LocalDate expected) { in test_dayOfWeekInMonth_zero()
394 …public void test_dayOfWeekInMonth_negative(int year, int month, DayOfWeek dow, LocalDate expected)… in test_dayOfWeekInMonth_negative()
418 public void test_firstInMonth(int year, int month, DayOfWeek dow, LocalDate expected) { in test_firstInMonth()
440 public void test_lastInMonth(int year, int month, DayOfWeek dow, LocalDate expected) { in test_lastInMonth()
/libcore/ojluni/src/main/java/java/time/chrono/
DJapaneseDate.java341 JapaneseDate(JapaneseEra era, int year, LocalDate isoDate) { in JapaneseDate()
504 int year = isoDate.getYear(); in toPrivateJapaneseDate() local
588 int year = JapaneseChronology.INSTANCE.prolepticYear(era, yearOfEra); in withYear() local
605 private JapaneseDate withYear(int year) { in withYear()
752 int year = in.readInt(); in readExternal() local
/libcore/luni/src/main/java/javax/xml/datatype/
DDatatypeFactory.java622 final BigInteger year, in newDurationYearMonth()
655 final int year, in newDurationYearMonth()
789 final BigInteger year, in newXMLGregorianCalendar()
825 final int year, in newXMLGregorianCalendar()
887 final int year, in newXMLGregorianCalendarDate()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKHijrahChronology.java149 public void test_badDates(int year, int month, int dom) { in test_badDates()
156 int year = 1435; in test_ofYearDayTooLarge() local
192 int year = HijrahChronology.INSTANCE.prolepticYear(era, 1); in test_InvalidEras() local
295 final int year = 1434; in data_resolve_ymd() local
439 final int year = 1343; in data_resolve_yd() local
/libcore/ojluni/src/main/java/java/time/zone/
DZoneRules.java487 int year = findYear(epochSec, wallOffsets[wallOffsets.length - 1]); in getOffset() local
721 private ZoneOffsetTransition[] findTransitionArray(int year) { in findTransitionArray()
847 int year = findYear(epochSec, wallOffsets[wallOffsets.length - 1]); in nextTransition() local
897 int year = findYear(epochSec, lastHistoricOffset); in previousTransition() local

1234