HomeSort by relevance Sort by last modified time
    Searched refs:YEAR (Results 76 - 100 of 462) sorted by null

1 2 34 5 6 7 8 91011>>

  /libcore/ojluni/src/main/java/java/time/
YearMonth.java 67 import static java.time.temporal.ChronoField.YEAR;
104 * A year-month in the ISO-8601 calendar system, such as {@code 2007-12}.
107 * of a year and month. Any field that can be derived from a year and month, such as
108 * quarter-of-year, can be obtained.
136 .appendValue(YEAR, 4, 10, SignStyle.EXCEEDS_PAD)
142 * The year.
144 private final int year; field in class:YearMonth
146 * The month-of-year, not null.
152 * Obtains the current year-month from the system clock in the default time-zone
1239 int year = in.readInt(); local
    [all...]
Year.java 65 import static java.time.temporal.ChronoField.YEAR;
101 * A year in the ISO-8601 calendar system, such as {@code 2007}.
103 * {@code Year} is an immutable date-time object that represents a year.
104 * Any field that can be derived from a year can be obtained.
112 * For example, the value "2007" can be stored in a {@code Year}.
115 * the proleptic numbering system. Year 1 is preceded by year 0, then by year -1.
129 public final class Year
155 private final int year; field in class:Year
    [all...]
  /libcore/ojluni/src/test/java/time/tck/java/time/chrono/
TCKThaiBuddhistChronology.java 62 import static java.time.temporal.ChronoField.YEAR;
75 import java.time.Year;
267 public void test_badDates(int year, int month, int dom) {
268 ThaiBuddhistChronology.INSTANCE.date(year, month, dom);
313 assertEquals(ThaiBuddhistChronology.INSTANCE.isLeapYear(expectedProlepticYear), Year.of(expectedProlepticYear - YDIFF).isLeap());
316 jdate = jdate.with(ChronoField.YEAR, expectedProlepticYear).with(ChronoField.MONTH_OF_YEAR, 2);
355 int year = ThaiBuddhistChronology.INSTANCE.prolepticYear(era, 1); local
386 ThaiBuddhistDate test = base.with(YEAR, 2554);
508 assertEquals(ThaiBuddhistChronology.INSTANCE.range(YEAR), ValueRange.of(minYear, maxYear));
551 // era and year-of-er
    [all...]
TCKMinguoChronology.java 72 import java.time.Year;
262 public void test_badDates(int year, int month, int dom) {
263 MinguoChronology.INSTANCE.date(year, month, dom);
306 assertEquals(MinguoChronology.INSTANCE.isLeapYear(expectedProlepticYear), Year.of(expectedProlepticYear + YDIFF).isLeap());
309 minguo = minguo.with(ChronoField.YEAR, expectedProlepticYear).with(ChronoField.MONTH_OF_YEAR, 2);
348 int year = MinguoChronology.INSTANCE.prolepticYear(era, 1); local
575 // era and year-of-era
580 {ResolverStyle.STRICT, 0, 2012, null, ChronoField.YEAR, -2011},
581 {ResolverStyle.SMART, 0, 2012, null, ChronoField.YEAR, -2011},
582 {ResolverStyle.LENIENT, 0, 2012, null, ChronoField.YEAR, -2011}
    [all...]
  /libcore/ojluni/src/test/java/time/tck/java/time/format/
TCKDateTimeParseResolver.java 92 import static java.time.temporal.ChronoField.YEAR;
143 {YEAR, 2012},
167 {YEAR, 2012, MONTH_OF_YEAR, 5},
168 {YEAR, 2012, DAY_OF_MONTH, 5},
169 {YEAR, 2012, DAY_OF_WEEK, 5},
170 {YEAR, 2012, ALIGNED_WEEK_OF_YEAR, 5},
171 {YEAR, 2012, ALIGNED_WEEK_OF_MONTH, 5},
172 {YEAR, 2012, IsoFields.QUARTER_OF_YEAR, 3},
173 {YEAR, 2012, MINUTE_OF_HOUR, 5},
174 {YEAR, 2012, SECOND_OF_MINUTE, 5}
    [all...]
  /frameworks/base/core/java/android/widget/
DayPickerPagerAdapter.java 82 final int diffYear = mMaxDate.get(Calendar.YEAR) - mMinDate.get(Calendar.YEAR);
210 return yearOffset + mMinDate.get(Calendar.YEAR);
218 final int yearOffset = day.get(Calendar.YEAR) - mMinDate.get(Calendar.YEAR);
249 final int year = getYearForPosition(position); local
259 if (mMinDate.get(Calendar.MONTH) == month && mMinDate.get(Calendar.YEAR) == year) {
266 if (mMaxDate.get(Calendar.MONTH) == month && mMaxDate.get(Calendar.YEAR) == year) {
    [all...]
DatePickerCalendarDelegate.java 46 * A delegate for picking up a date (day / month / year).
168 // Set up year picker view.
171 mYearPickerView.setYear(mCurrentDate.get(Calendar.YEAR));
245 * Listener called when the user selects a year in the year picker view.
249 public void onYearChanged(YearPickerView view, int year) {
250 // If the newly selected month / year does not contain the
252 // to the last day of the selected month or year.
257 final int daysInMonth = getDaysInMonth(month, year);
262 mCurrentDate.set(Calendar.YEAR, year)
318 final String year = mYearFormat.format(mCurrentDate.getTime()); local
345 final int year = mCurrentDate.get(Calendar.YEAR); local
392 final int year = mCurrentDate.get(Calendar.YEAR); local
536 final int year = mCurrentDate.get(Calendar.YEAR); local
    [all...]
DatePickerSpinnerDelegate.java 144 mTempDate.set(Calendar.YEAR, newVal);
149 setDate(mTempDate.get(Calendar.YEAR), mTempDate.get(Calendar.MONTH),
162 public void onSelectedDayChange(CalendarView view, int year, int month, int monthDay) {
163 setDate(year, month, monthDay);
185 // year
186 mYearSpinner = (NumberPicker) mDelegator.findViewById(com.android.internal.R.id.year);
224 init(mCurrentDate.get(Calendar.YEAR), mCurrentDate.get(Calendar.MONTH), mCurrentDate
240 public void init(int year, int monthOfYear, int dayOfMonth,
242 setDate(year, monthOfYear, dayOfMonth);
250 public void updateDate(int year, int month, int dayOfMonth)
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
GregorianCalendarTest.java 66 1972, gc.get(Calendar.YEAR));
84 1972, gc.get(Calendar.YEAR));
100 5983, gc.get(Calendar.YEAR));
113 1972, gc.get(Calendar.YEAR));
167 c1.set(Calendar.YEAR, 1999);
206 gc1.add(GregorianCalendar.YEAR, 1);
208 1999, gc1.get(GregorianCalendar.YEAR));
212 assertEquals("Wrong result year 1", 2000, gc1.get(Calendar.YEAR));
217 gc1.add(Calendar.YEAR, -1)
    [all...]
  /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
IBMCalendarTest.java 151 * that behaves like a Gregorian but has different year/era mappings.
154 * { era, year, gregorianYear, month, dayOfMonth, ... }
164 int year = data[i++]; local
175 cal.set(year, month, dayOfMonth);
178 logln("OK: " + era + ":" + year + "/" + (month+1) + "/" + dayOfMonth +
181 errln("Fail: " + era + ":" + year + "/" + (month+1) + "/" + dayOfMonth +
188 int y = cal.get(Calendar.YEAR);
189 if (y == year && e == era) {
191 cal.get(Calendar.YEAR) + "/" +
195 cal.get(Calendar.YEAR) + "/"
669 int year; field in class:IBMCalendarTest.TestData
1182 private int year; field in class:IBMCalendarTest.CalFields
1241 int year = cal.get(Calendar.YEAR); local
    [all...]
TestCase.java 65 get(Calendar.YEAR) + "/" + (get(Calendar.MONTH)+1) + "/" +
84 * @param year The YEAR field of tested calendar on the given julian day
93 int era, int year, int month, int day,
100 set(Calendar.YEAR, year);
110 * Initialize a TestCase object using a Gregorian year/month/day and
113 * @param gregYear The Gregorian year of the date to be tested
118 * @param year The YEAR field of tested calendar on the given gregorian dat
    [all...]
HolidayTest.java 217 int year = fCalendar.get(Calendar.YEAR); local
222 fCalendar.set(Calendar.YEAR, year);
233 new SimpleHoliday(2, 29, 0, "Leap year", 1900, 2100)};
283 assertEquals("Easter's year: ", 2014, c.get(Calendar.YEAR));
296 gcal.set(Calendar.YEAR, 2000);
310 gcal.set(Calendar.YEAR, 1957);
312 gcal.set(Calendar.YEAR, 1958)
    [all...]
PersianTest.java 75 // The 2820-year cycle arithmetical algorithm would fail this one.
90 int y = cal.get(Calendar.YEAR);
114 cal.set(Calendar.YEAR, cyear);
137 assertEquals("Persian Week of Year least maximum", 52, leastWeeks);
  /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
IBMCalendarTest.java 150 * that behaves like a Gregorian but has different year/era mappings.
153 * { era, year, gregorianYear, month, dayOfMonth, ... }
163 int year = data[i++]; local
174 cal.set(year, month, dayOfMonth);
177 logln("OK: " + era + ":" + year + "/" + (month+1) + "/" + dayOfMonth +
180 errln("Fail: " + era + ":" + year + "/" + (month+1) + "/" + dayOfMonth +
187 int y = cal.get(Calendar.YEAR);
188 if (y == year && e == era) {
190 cal.get(Calendar.YEAR) + "/" +
194 cal.get(Calendar.YEAR) + "/"
668 int year; field in class:IBMCalendarTest.TestData
1181 private int year; field in class:IBMCalendarTest.CalFields
1240 int year = cal.get(Calendar.YEAR); local
    [all...]
TestCase.java 64 get(Calendar.YEAR) + "/" + (get(Calendar.MONTH)+1) + "/" +
83 * @param year The YEAR field of tested calendar on the given julian day
92 int era, int year, int month, int day,
99 set(Calendar.YEAR, year);
109 * Initialize a TestCase object using a Gregorian year/month/day and
112 * @param gregYear The Gregorian year of the date to be tested
117 * @param year The YEAR field of tested calendar on the given gregorian dat
    [all...]
HolidayTest.java 216 int year = fCalendar.get(Calendar.YEAR); local
221 fCalendar.set(Calendar.YEAR, year);
232 new SimpleHoliday(2, 29, 0, "Leap year", 1900, 2100)};
282 assertEquals("Easter's year: ", 2014, c.get(Calendar.YEAR));
295 gcal.set(Calendar.YEAR, 2000);
309 gcal.set(Calendar.YEAR, 1957);
311 gcal.set(Calendar.YEAR, 1958)
    [all...]
  /external/icu/android_icu4j/src/main/java/android/icu/util/
IndianCalendar.java 48 * So When its a leap year in Gregorian calendar then Chaitra has 31 days.
51 * Years are counted in the Saka Era, which starts its year 0 in 78AD (by gregorian calendar).
73 * Constant for Chaitra, the 1st month of the Indian year.
78 * Constant for Vaisakha, the 2nd month of the Indian year.
83 * Constant for Jyaistha, the 3rd month of the Indian year.
88 * Constant for Asadha, the 4th month of the Indian year.
93 * Constant for Sravana, the 5th month of the Indian year.
98 * Constant for Bhadra, the 6th month of the Indian year.
103 * Constant for Asvina, the 7th month of the Indian year.
108 * Constant for Kartika, the 8th month of the Indian year.
289 int year; local
499 int year, month, day; local
    [all...]
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
IndianCalendar.java 47 * So When its a leap year in Gregorian calendar then Chaitra has 31 days.
50 * Years are counted in the Saka Era, which starts its year 0 in 78AD (by gregorian calendar).
74 * Constant for Chaitra, the 1st month of the Indian year.
80 * Constant for Vaisakha, the 2nd month of the Indian year.
86 * Constant for Jyaistha, the 3rd month of the Indian year.
92 * Constant for Asadha, the 4th month of the Indian year.
98 * Constant for Sravana, the 5th month of the Indian year.
104 * Constant for Bhadra, the 6th month of the Indian year.
110 * Constant for Asvina, the 7th month of the Indian year.
116 * Constant for Kartika, the 8th month of the Indian year.
313 int year; local
528 int year, month, day; local
    [all...]
  /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/
PeriodBuilderFactoryTest.java 39 for (TimeUnit unit = YEAR; unit != null; unit = unit.smaller()) {
47 for (TimeUnit unit = YEAR; unit != null; unit = unit.smaller()) {
53 for (TimeUnit unit = YEAR; unit != null; unit = unit.smaller()) {
  /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/
PeriodBuilderFactoryTest.java 38 for (TimeUnit unit = YEAR; unit != null; unit = unit.smaller()) {
46 for (TimeUnit unit = YEAR; unit != null; unit = unit.smaller()) {
52 for (TimeUnit unit = YEAR; unit != null; unit = unit.smaller()) {
  /external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
XMPDateTimeImpl.java 32 private int year = 0; field in class:XMPDateTimeImpl
80 this.year = intCalendar.get(Calendar.YEAR);
102 this.year = calendar.get(Calendar.YEAR);
130 return year;
137 public void setYear(int year)
139 this.year = Math.min(Math.abs(year), 9999);
319 calendar.set(Calendar.YEAR, year)
    [all...]
  /libcore/ojluni/src/main/java/java/util/
GregorianCalendar.java 74 * and the Julian calendar is the leap year rule. The Julian calendar specifies
86 * leap year rules were applied irregularly, and before 45 BC the Julian
90 * Prior to the institution of the Gregorian calendar, New Year's Day was
95 * <h3><a name="week_and_year">Week Of Year and Week Year</a></h3>
99 * calendar year is the earliest seven day period starting on {@link
102 * getMinimalDaysInFirstWeek()} days from that year. It thus depends
105 * between week 1 of one year and week 1 of the following year
107 * for year(s) involved in the Julian-Gregorian transition)
958 int year = internalGet(YEAR); local
1700 int year = gc.cdate.getNormalizedYear(); local
2087 int year = get(YEAR); \/\/ implicitly calls complete() local
2390 int year; local
2676 int year = isSet(YEAR) ? internalGet(YEAR) : EPOCH_YEAR; local
3298 int year = internalGet(YEAR); local
3306 int year = cdate.getNormalizedYear(); local
3338 int year = internalGet(YEAR); local
3352 int year = internalGet(YEAR); local
    [all...]
  /libcore/ojluni/src/main/java/java/time/chrono/
MinguoDate.java 62 import static java.time.temporal.ChronoField.YEAR;
163 * system from the proleptic-year, month-of-year and day-of-month fields.
166 * The day must be valid for the year and month, otherwise an exception will be thrown.
168 * @param prolepticYear the Minguo proleptic-year
169 * @param month the Minguo month-of-year, from 1 to 12
173 * or if the day-of-month is invalid for the month-year
263 ValueRange range = YEAR.range();
285 case YEAR:
316 case YEAR
507 int year = in.readInt(); local
    [all...]
ThaiBuddhistDate.java 62 import static java.time.temporal.ChronoField.YEAR;
163 * system from the proleptic-year, month-of-year and day-of-month fields.
166 * The day must be valid for the year and month, otherwise an exception will be thrown.
168 * @param prolepticYear the Thai Buddhist proleptic-year
169 * @param month the Thai Buddhist month-of-year, from 1 to 12
173 * or if the day-of-month is invalid for the month-year
263 ValueRange range = YEAR.range();
285 case YEAR:
316 case YEAR
507 int year = in.readInt(); local
    [all...]
  /libcore/ojluni/src/test/java/time/tck/java/time/temporal/
TCKChronoField.java 84 import static java.time.temporal.ChronoField.YEAR;
125 {YEAR, YEARS, FOREVER},
168 {YEAR, true, false},
201 {YEAR, LocalDate.of(2000, 2, 29), true, 2000},
202 {YEAR, LocalDateTime.of(2000, 2, 29, 5, 4, 3, 200), true, 2000},
226 {YEAR, LocalTime.of(5, 4, 3, 200), false, -1},

Completed in 502 milliseconds

1 2 34 5 6 7 8 91011>>