/libcore/luni/src/test/java/libcore/java/sql/ |
OldResultSetGetterTests.java | 939 cal2.set(Calendar.YEAR, 2007); 996 cal2.set(Calendar.YEAR, 2007); [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
CalendarTest.java | 152 private void testSetSelfConsistent(TimeZone timeZone, int year, int month, int day) { 157 calendar.set(year, month, day, hour, minute); 158 assertEquals(year, calendar.get(Calendar.YEAR)); 216 int year, int month, int day, int hour, int minute) { 217 assertEquals("year", year, calendar.get(Calendar.YEAR)); 246 cal.set(Calendar.YEAR, 1970);
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
DateWidgets1.java | 71 mYear = c.get(Calendar.YEAR); 131 public void onDateSet(DatePicker view, int year, int monthOfYear, 133 mYear = year;
|
/development/testrunner/ |
create_test.py | 38 <!-- Copyright (C) $YEAR The Android Open Source Project 110 "YEAR":datetime.date.today().year}
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/ |
timemodule.c | 219 {"tm_year", "year, for example, 1993"},
220 {"tm_mon", "month of year, range [1, 12]"},
226 {"tm_yday", "day of year, range [1, 366]"},
238 " field tm_year is the actual year, not year - 1900. See individual\n"
371 "year >= 1900 required");
380 "year out of range");
470 PyErr_SetString(PyExc_ValueError, "day of year out of range");
730 #define YEAR ((time_t)((365 * 24 + 6) * 3600))
735 t = (time((time_t *)0) / YEAR) * YEAR; [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/ |
timemodule.c | 219 {"tm_year", "year, for example, 1993"},
220 {"tm_mon", "month of year, range [1, 12]"},
226 {"tm_yday", "day of year, range [1, 366]"},
238 " field tm_year is the actual year, not year - 1900. See individual\n"
371 "year >= 1900 required");
380 "year out of range");
470 PyErr_SetString(PyExc_ValueError, "day of year out of range");
730 #define YEAR ((time_t)((365 * 24 + 6) * 3600))
735 t = (time((time_t *)0) / YEAR) * YEAR; [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/ |
BasicDurationFormat.java | 104 TimeUnit.YEAR,
|
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/holiday/ |
HolidayCalendarDemo.java | 362 calendarPanel.add(Calendar.YEAR, -1); 366 calendarPanel.add(Calendar.YEAR, +1); 493 int year = fCalendar.get(Calendar.YEAR); local 498 fCalendar.set(Calendar.YEAR, year);
|
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/impl/ |
DemoUtility.java | 38 return Calendar.getInstance().get(Calendar.YEAR);
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/ |
BasicDurationFormat.java | 102 TimeUnit.YEAR,
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
DebugUtilitiesData.java | 42 "YEAR", /* 1 */ 123 com.ibm.icu.util.Calendar.YEAR, /* 1 */
|
/external/junit-params/src/test/java/junitparams/ |
ParamsConverterTest.java | 95 assertThat(calendar.get(Calendar.YEAR)).isEqualTo(2012);
|
/external/nist-sip/java/gov/nist/javax/sip/parser/ |
HeaderParser.java | 119 retval.set(Calendar.YEAR, yr);
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/types/ |
TimestampTagTest.java | 94 int years = cal.get(Calendar.YEAR);
|
/external/v8/src/ |
dateparser.cc | 20 int year = 0; // Default year is 0 (=> 2000) for KJS compatibility. local 27 year = comp_[0]; 34 if (index_ == 3) year = comp_[2]; 43 year = comp_[0]; 48 year = comp_[1]; 53 if (Between(year, 0, 49)) year += 2000; 54 else if (Between(year, 50, 99)) year += 1900 [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
Support_MessageFormat.java | 97 v.add(new FieldContainer(11, 15, DateFormat.Field.YEAR));
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
JapaneseChronologyTest.java | 70 // pick the first january of the second year of each era, except for Meiji, because the 71 // first supported year in JapaneseChronology is Meiji 6. 110 assertEquals(true, date.isSupported(ChronoField.YEAR));
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
TestJapaneseChronoImpl.java | 116 assertEquals(jDate.get(ChronoField.YEAR_OF_ERA), cal.get(Calendar.YEAR), "Year mismatch in " + jDate); 133 for (int year : new int[] {6, 7}) { 134 JapaneseDate jd = JapaneseChronology.INSTANCE.dateYearDay(era, year, 1); 141 "different DAY_OF_YEAR values in " + era + ", year: " + year); local 143 "different maximum for DAY_OF_YEAR in " + era + ", year: " + year); local 145 "different minimum for DAY_OF_YEAR in " + era + ", year: " + year); local [all...] |
/libcore/support/src/test/java/tests/support/ |
Support_MessageFormat.java | 94 v.add(new FieldContainer(11, 15, DateFormat.Field.YEAR));
|
/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
UsageStatsTest.java | 65 private static final long YEAR = 365 * DAY; 288 intervalLengths.put(UsageStatsManager.INTERVAL_YEARLY, YEAR);
|
/cts/tests/tests/text/src/android/text/format/cts/ |
DateFormatTest.java | 62 private static final int YEAR = 2008; 203 Calendar calendar = new GregorianCalendar(YEAR, MONTH, DAY); 310 assertTrue(locale.toString() + " year not found", seenYear);
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
IndianTest.java | 60 // Julian Day Era Year Month Day WkDay Hour Min Sec 116 cal.get(YEAR) + "/" + 122 cal.get(YEAR) + "/" + 177 // new IndianCalendar(int year, int month, int date) 180 errln("could not create IndianCalendar with year,month,date"); 184 // new IndianCalendar(int year, int month, int date, int hour, int minute, int second) 187 errln("could not create IndianCalendar with year,month,date,hour,minute,second"); 268 errln("Incorrect calendar value for year edge test"); 272 errln("Incorrect calendar value for year edge test"); 276 errln("Incorrect calendar value for year edge test") [all...] |
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/calendar/ |
CalendarPanel.java | 107 int year = fCalendar[0].get(Calendar.YEAR); local 112 fCalendar[0].set(Calendar.YEAR, year);
|
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/ |
SimpleDateFormat.java | 57 * y† year (Number) 1996 58 * Y* year (week of year) (Number) 1997 59 * u* extended year (Number) 4601 60 * M month in year (Text & Number) July & 07 69 * D day in year (Number) 189 71 * w week in year (Number) 27 82 * Q* quarter in year (Text & Number) Q1 & 01 99 * numbers are zero-padded to this amount. Year is handled specially; 100 * that is, if the count of 'y' is 2, the Year will be truncated to 2 digits [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
IndianTest.java | 59 // Julian Day Era Year Month Day WkDay Hour Min Sec 115 cal.get(YEAR) + "/" + 121 cal.get(YEAR) + "/" + 176 // new IndianCalendar(int year, int month, int date) 179 errln("could not create IndianCalendar with year,month,date"); 183 // new IndianCalendar(int year, int month, int date, int hour, int minute, int second) 186 errln("could not create IndianCalendar with year,month,date,hour,minute,second"); 267 errln("Incorrect calendar value for year edge test"); 271 errln("Incorrect calendar value for year edge test"); 275 errln("Incorrect calendar value for year edge test") [all...] |