/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/ |
PeriodTest.java | 30 Period p = Period.at(0, TimeUnit.YEAR); 32 assertTrue(null, p.isSet(TimeUnit.YEAR)); 34 assertEquals(null, 0f, p.getCount(TimeUnit.YEAR), .1f); 35 p = p.omit(TimeUnit.YEAR); 36 assertFalse(null, p.isSet(TimeUnit.YEAR)); 40 Period p = Period.moreThan(1, TimeUnit.YEAR); 53 p = Period.lessThan(1, TimeUnit.YEAR); 57 p = Period.at(1, TimeUnit.YEAR); 61 assertEquals(null, 1f, p.getCount(TimeUnit.YEAR), .1f); 65 Period p = Period.at(1, TimeUnit.YEAR).inFuture() [all...] |
/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/android_icu4j/src/main/java/android/icu/impl/duration/ |
TimeUnitConstants.java | 16 /** Represents a year. */ 17 public static final TimeUnit YEAR = TimeUnit.YEAR;
|
TimeUnit.java | 33 /** Represents a year. */ 34 public static final TimeUnit YEAR = new TimeUnit("year", 0); 69 YEAR, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MILLISECOND
|
/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/android_icu4j/src/main/java/android/icu/util/ |
TimeUnit.java | 36 return new TimeUnit[] { SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR }; 60 return YEAR;
|
TaiwanCalendar.java | 19 * except for the year and era. Years are numbered since 1912 AD (Gregorian). 135 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 142 public TaiwanCalendar(int year, int month, int date) { 143 super(year, month, date); 150 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 159 public TaiwanCalendar(int year, int month, int date, int hour 184 int year = GREGORIAN_EPOCH; local [all...] |
CopticCalendar.java | 30 * the 1st month of the Coptic year. 36 * the 2nd month of the Coptic year. 42 * the 3rd month of the Coptic year. 48 * the 4th month of the Coptic year. 54 * the 5th month of the Coptic year. 60 * the 6th month of the Coptic year. 66 * the 7th month of the Coptic year. 72 * the 8th month of the Coptic year. 78 * the 9th month of the Coptic year. 84 * the 10th month of the Coptic year. 250 int era, year; local [all...] |
BuddhistCalendar.java | 21 * except for the year and era. Years are numbered since the birth of the 134 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 141 public BuddhistCalendar(int year, int month, int date) { 142 super(year, month, date); 149 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 162 public BuddhistCalendar(int year, int month, int date, int hour 186 int year; local [all...] |
GregorianCalendar.java | 32 * and the Julian calendar is the leap year rule. The Julian calendar specifies 43 * leap year rules were applied irregularly, and before 45 BC the Julian 46 * <p>Prior to the institution of the Gregorian calendar, New Year's Day was 52 * 53. Week 1 for a year is the earliest seven day period starting on 54 * <code>getMinimalDaysInFirstWeek()</code> days from that year. It thus 57 * Weeks between week 1 of one year and week 1 of the following year are 74 * week 1 of a year, week 1 of a month may be shorter than 7 days, need 115 * System.out.println("YEAR: " + calendar.get(Calendar.YEAR)); 787 int year; local [all...] |
JapaneseCalendar.java | 16 * except for the year and era. The ascension of each emperor to the throne 18 * year of ascension as year 1. 20 * Note that in the year of an imperial ascension, there are two possible sets 21 * of year and era values: that for the old era and for the new. For example, a 23 * of that year were in the Showa era, e.g. "January 6, 64 Showa", while the rest 24 * of the year was in the Heisei era, e.g. "January 7, 1 Heisei". This class 139 * @param year The value used to set the calendar's {@link #YEAR YEAR} field 206 int year; local 266 int year = internalGet(EXTENDED_YEAR); local [all...] |
/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. 271 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...] |
/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);
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
ChineseTestCase.java | 21 * @param year the YEAR field of tested calendar on the given 32 int era, int year, int month, 38 set(Calendar.YEAR, year); 50 get(Calendar.YEAR) + "of" + get(Calendar.ERA) +
|
/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) +
|
/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);
|
/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);
|