/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/ |
PeriodTest.java | 26 Period p = Period.at(0, TimeUnit.YEAR); 28 assertTrue(null, p.isSet(TimeUnit.YEAR)); 30 assertEquals(null, 0f, p.getCount(TimeUnit.YEAR), .1f); 31 p = p.omit(TimeUnit.YEAR); 32 assertFalse(null, p.isSet(TimeUnit.YEAR)); 36 Period p = Period.moreThan(1, TimeUnit.YEAR); 49 p = Period.lessThan(1, TimeUnit.YEAR); 53 p = Period.at(1, TimeUnit.YEAR); 57 assertEquals(null, 1f, p.getCount(TimeUnit.YEAR), .1f); 61 Period p = Period.at(1, TimeUnit.YEAR).inFuture() [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/ |
TimeUnitConstants.java | 14 /** Represents a year. */ 15 public static final TimeUnit YEAR = TimeUnit.YEAR;
|
TimeUnit.java | 31 /** Represents a year. */ 32 public static final TimeUnit YEAR = new TimeUnit("year", 0); 67 YEAR, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MILLISECOND
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
TimeUnit.java | 38 return new TimeUnit[] { SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR }; 62 return YEAR;
|
TaiwanCalendar.java | 18 * except for the year and era. Years are numbered since 1912 AD (Gregorian). 145 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 153 public TaiwanCalendar(int year, int month, int date) { 154 super(year, month, date); 161 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 171 public TaiwanCalendar(int year, int month, int date, int hour 197 int year = GREGORIAN_EPOCH; local [all...] |
CopticCalendar.java | 30 * the 1st month of the Coptic year. 37 * the 2nd month of the Coptic year. 44 * the 3rd month of the Coptic year. 51 * the 4th month of the Coptic year. 58 * the 5th month of the Coptic year. 65 * the 6th month of the Coptic year. 72 * the 7th month of the Coptic year. 79 * the 8th month of the Coptic year. 86 * the 9th month of the Coptic year. 93 * the 10th month of the Coptic year. 273 int era, year; local [all...] |
BuddhistCalendar.java | 20 * except for the year and era. Years are numbered since the birth of the 142 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 150 public BuddhistCalendar(int year, int month, int date) { 151 super(year, month, date); 158 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 172 public BuddhistCalendar(int year, int month, int date, int hour 197 int year; local [all...] |
GregorianCalendar.java | 31 * and the Julian calendar is the leap year rule. The Julian calendar specifies 42 * leap year rules were applied irregularly, and before 45 BC the Julian 45 * <p>Prior to the institution of the Gregorian calendar, New Year's Day was 51 * 53. Week 1 for a year is the earliest seven day period starting on 53 * <code>getMinimalDaysInFirstWeek()</code> days from that year. It thus 56 * Weeks between week 1 of one year and week 1 of the following year are 73 * week 1 of a year, week 1 of a month may be shorter than 7 days, need 114 * System.out.println("YEAR: " + calendar.get(Calendar.YEAR)); 813 int year; local [all...] |
JapaneseCalendar.java | 15 * except for the year and era. The ascension of each emperor to the throne 17 * year of ascension as year 1. 19 * Note that in the year of an imperial ascension, there are two possible sets 20 * of year and era values: that for the old era and for the new. For example, a 22 * of that year were in the Showa era, e.g. "January 6, 64 Showa", while the rest 23 * of the year was in the Heisei era, e.g. "January 7, 1 Heisei". This class 146 * @param year The value used to set the calendar's {@link #YEAR YEAR} field 217 int year; local 280 int year = internalGet(EXTENDED_YEAR); local [all...] |
HebrewCalendar.java | 23 * solar year (approximately 365.24 days) is not an even multiple of 26 * interesting, the start of a year can be delayed by up to three days 28 * to prevent certain illegal year lengths. Finally, the lengths of certain 29 * months can vary depending on the number of days in the year. 33 * not come at the end of the year, calculations involving 84 * Constant for Tishri, the 1st month of the Hebrew year. 90 * Constant for Heshvan, the 2nd month of the Hebrew year. 96 * Constant for Kislev, the 3rd month of the Hebrew year. 102 * Constant for Tevet, the 4th month of the Hebrew year. 108 * Constant for Shevat, the 5th month of the Hebrew year. 457 int year = get(YEAR); local 538 int year = get(YEAR); local 795 int year = (int)((19 * m + 234) \/ 235) + 1; \/\/ Years (approx) local 833 int year; local [all...] |
EthiopicCalendar.java | 32 * Constant for መስከረም, the 1st month of the Ethiopic year. 38 * Constant for ጥቅምት, the 2nd month of the Ethiopic year. 44 * Constant for ኅዳር, the 3rd month of the Ethiopic year. 50 * Constant for ታኅሣሥ, the 4th month of the Ethiopic year. 56 * Constant for ጥር, the 5th month of the Ethiopic year. 62 * Constant for የካቲት, the 6th month of the Ethiopic year. 68 * Constant for መጋቢት, the 7th month of the Ethiopic year. 74 * Constant for ሚያዝያ, the 8th month of the Ethiopic year. 80 * Constant for ግንቦት, the 9th month of the Ethiopic year. 86 * Constant for ሰኔ, the 10th month of the Ethiopic year. 326 int era, year; local [all...] |
PersianCalendar.java | 21 * in various ways, except its leap year rule, which is determined 22 * astronomically. The Persian year starts around the March equinox. 32 * The official rule for determination of the beginning of the Persian year 39 * expected that for about one year in every twenty-four years, the Afghan 44 * here, commonly known as the 33-year cycle rule, matches the astronomical 47 * commonly known algorithm, the 2820-year cycle, has been incorrectly 48 * designed to follow the tropical year instead of the spring equinoctial 49 * year, and fails to match the astronomical one as early as 2025 CE. 88 // len2 length of month in a leap year 89 // st days in year before start of mont 390 int year; local 418 int year, month, dayOfMonth, dayOfYear; local [all...] |
SimpleDateRule.java | 125 c.setTime(computeInYear(c.get(Calendar.YEAR), c)); 152 int year = c.get(Calendar.YEAR); local 155 // If the rule is earlier in the year than the start date 156 // we have to go to the next year. 158 year++; 161 // Figure out when the rule lands in the given year 162 Date result = computeInYear(year, c); 165 // to get a result that's before the start. If so, go to next year. 167 result = computeInYear(year+1, c) [all...] |
/developers/build/prebuilts/gradle/SpeedTracker/Shared/src/main/java/com/example/android/wearable/speedtracker/common/ |
Utils.java | 27 * Builds a simple hash for a day by concatenating year and day of year together. Note that two 32 return day.get(Calendar.YEAR) + "-" + day.get(Calendar.DAY_OF_YEAR);
|
/developers/samples/android/wearable/wear/SpeedTracker/Shared/src/main/java/com/example/android/wearable/speedtracker/common/ |
Utils.java | 27 * Builds a simple hash for a day by concatenating year and day of year together. Note that two 32 return day.get(Calendar.YEAR) + "-" + day.get(Calendar.DAY_OF_YEAR);
|
/development/samples/browseable/SpeedTracker/Shared/src/com.example.android.wearable.speedtracker.common/ |
Utils.java | 27 * Builds a simple hash for a day by concatenating year and day of year together. Note that two 32 return day.get(Calendar.YEAR) + "-" + day.get(Calendar.DAY_OF_YEAR);
|
/libcore/luni/src/test/java/libcore/java/util/ |
DateTest.java | 50 c.set(Calendar.YEAR, 21); 53 c.set(Calendar.YEAR, 321); 64 c.set(Calendar.YEAR, 21); 67 c.set(Calendar.YEAR, 321);
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
ChineseTestCase.java | 20 * @param year the YEAR field of tested calendar on the given 31 int era, int year, int month, 37 set(Calendar.YEAR, year); 49 get(Calendar.YEAR) + "of" + get(Calendar.ERA) +
|
JapaneseTest.java | 80 // new JapaneseCalendar(int year, int month, int date) 83 errln("could not create JapaneseCalendar with year,month,date"); 88 // new JapaneseCalendar(int era, int year, int month, int date) 91 errln("could not create JapaneseCalendar with era,year,month,date"); 96 // new JapaneseCalendar(int year, int month, int date, int hour, int minute, int second) 99 errln("could not create JapaneseCalendar with year,month,date,hour,min,second"); 111 logln("min year: " + cal.getMinimum(Calendar.YEAR)); 112 cal.set(Calendar.YEAR, cal.getActualMaximum(Calendar.YEAR)); [all...] |
HebrewTest.java | 45 * The only real nastiness with roll is the MONTH field, since a year can 51 // year month day field amount year month day 71 { 5757, TISHRI, 1, YEAR, 1, 5758, TISHRI, 1 }, 76 { 5758, KISLEV, 30, YEAR, -1, 5757, KISLEV, 29 }, 89 * The only real nastiness with roll is the MONTH field, since a year can 95 // year month day field amount year month day 140 // Julian Day Era Year Month Day WkDay Hour Min Sec 188 // G.YY/MM/DD Era Year Month Day WkDay Hour Min Se [all...] |
/libcore/luni/src/main/java/libcore/icu/ |
DateUtilsBridge.java | 120 // If we've been asked to show the date, work out whether we think we should show the year. 123 // The caller explicitly wants us to show the year. 125 // The caller explicitly doesn't want us to show the year, even if we otherwise would. 159 return c1.get(Calendar.YEAR) != c2.get(Calendar.YEAR) || 169 return c1.get(Calendar.YEAR) == c2.get(Calendar.YEAR); 175 return c.get(Calendar.YEAR) == now.get(Calendar.YEAR);
|
/frameworks/base/core/tests/coretests/src/android/text/format/ |
DateFormatTest.java | 37 assertFalse(DateFormat.hasDesignator("hh:mm 'yyyy'", DateFormat.YEAR));
|
/libcore/luni/src/main/java/java/util/ |
GregorianCalendar.java | 42 * the Julian calendar is the leap year rule. The Julian calendar specifies leap 54 * date, leap year rules were applied irregularly, and before 45 BC the Julian 58 * Prior to the institution of the Gregorian calendar, New Year's Day was March 65 * 53. Week 1 for a year is the earliest seven day period starting on 67 * {@code getMinimalDaysInFirstWeek()} days from that year. It thus 70 * Weeks between week 1 of one year and week 1 of the following year are 89 * {@code getFirstDayOfWeek()}. Unlike week 1 of a year, week 1 of a 132 * System.out.println("YEAR: " + calendar.get(Calendar.YEAR)); 681 int year = isSet[YEAR] ? fields[YEAR] : 1970; local 823 int year = 1970; local 1059 int year = 1970; local [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
CalendarTest.java | 44 cal.set(Calendar.YEAR, 2002); 49 cal.set(Calendar.YEAR, 2002); 55 cal.set(Calendar.YEAR, 2002); 73 cal.set(Calendar.YEAR, 2002); 79 cal.set(Calendar.YEAR, 2002); 85 cal.set(Calendar.YEAR, 2002); 91 cal.set(Calendar.YEAR, 2002); 97 cal.set(Calendar.YEAR, 2002); 103 cal.set(Calendar.YEAR, 2002); 109 cal.set(Calendar.YEAR, 2002) 467 int year = Integer.MIN_VALUE + 71; local [all...] |
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/ |
DosUtils.java | 51 cal.set(Calendar.YEAR, 1980 + (dosDate >> 9)); 78 return 512 * (cal.get(Calendar.YEAR) - 1980) + 32 * (cal.get(Calendar.MONTH) + 1) +
|