/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)); 772 int year = isSet[YEAR] ? fields[YEAR] : 1970; local 906 int year = 1970; local 926 long year = iyear; local 1174 int year = 1970; local [all...] |
/libcore/luni/src/test/java/tests/api/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...] |
GregorianCalendarTest.java | 68 1972, gc.get(Calendar.YEAR)); 92 1972, gc.get(Calendar.YEAR)); 108 5983, gc.get(Calendar.YEAR)); 127 1972, gc.get(Calendar.YEAR)); 261 gc1.add(GregorianCalendar.YEAR, 1); 263 1999, gc1.get(GregorianCalendar.YEAR)); 267 assertEquals("Wrong result year 1", 2000, gc1.get(Calendar.YEAR)); 272 gc1.add(Calendar.YEAR, -1); 273 assertEquals("Wrong result year 2", 1999, gc1.get(Calendar.YEAR)) [all...] |
/frameworks/base/core/java/android/app/ |
DatePickerDialog.java | 45 private static final String YEAR = "year"; 66 * @param year The year that was set. 71 void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth); 77 * @param year The initial year of the dialog. 83 int year, 87 callBack, year, monthOfYear, dayOfMonth); 94 * @param year The initial year of the dialog 182 int year = savedInstanceState.getInt(YEAR); local [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
ASN1Time.java | 54 c.set(Calendar.YEAR, in.times[0]);
|
/cts/tests/src/android/provider/cts/ |
MediaStoreAudioTestHelper.java | 87 public static final int YEAR = 1992; 132 values.put(Media.YEAR, YEAR); 160 public static final int YEAR = 1992; 208 values.put(Media.YEAR, YEAR);
|
/external/chromium/third_party/icu/source/tools/genpname/ |
gensvpa.pl | 116 ($DAY, $MONTH, $YEAR) = (localtime)[3,4,5]; 117 $YEAR += 1900; 121 # Copyright (c) 2006-$YEAR, International Business Machines
|
/external/icu4c/tools/genpname/ |
gensvpa.pl | 116 ($DAY, $MONTH, $YEAR) = (localtime)[3,4,5]; 117 $YEAR += 1900; 121 # Copyright (c) 2006-$YEAR, International Business Machines
|
/frameworks/base/core/java/android/util/ |
MonthDisplayHelper.java | 32 // holds current month, year, helps compute display 42 * @param year The year. 46 public MonthDisplayHelper(int year, int month, int weekStartDay) { 54 mCalendar.set(Calendar.YEAR, year); 66 public MonthDisplayHelper(int year, int month) { 67 this(year, month, Calendar.SUNDAY); 72 return mCalendar.get(Calendar.YEAR); 197 // helper method that recalculates cached values based on current month / year [all...] |
/frameworks/base/core/jni/ |
TimeUtils.h | 52 YEAR = 6, 69 inline void set(int sec, int min, int hour, int mday, int mon, int year, 77 this->t.tm_year = year;
|
/libcore/support/src/test/java/tests/support/ |
Support_SimpleDateFormat.java | 73 t_FormatWithField(1, format, date, null, Field.YEAR, 6, 8); 107 t_FormatWithField(25, format, date, null, Field.YEAR, 0, 0); 165 v.add(new FieldContainer(0, 4, Field.YEAR)); 181 v.add(new FieldContainer(18, 22, Field.YEAR)); 208 // Datetime pattern 'y' for year 1999 is 1999 not 99. See http://unicode.org/reports/tr35/. 216 v.add(new FieldContainer(6, 10, Field.YEAR)); 217 v.add(new FieldContainer(11, 13, Field.YEAR)); 218 v.add(new FieldContainer(14, 18, Field.YEAR));
|
/frameworks/base/core/java/android/text/format/ |
DateFormat.java | 155 This designator indicates the month of the year 184 This designator indicates the year. 190 public static final char YEAR = 'y'; 296 int year = value.indexOf('y'); local 298 if (month >= 0 && day >= 0 && year >= 0) { 300 if (year < month && year < day) { 307 if (day < year) { 313 if (month < year) { 327 * so that we get a four-digit year instead a two-digit year 576 int year = inDate.get(Calendar.YEAR); local [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
MediaStore_Audio_AlbumsTest.java | 104 assertEquals(Audio1.YEAR, c.getInt(c.getColumnIndex(Albums.FIRST_YEAR))); 105 assertEquals(Audio1.YEAR, c.getInt(c.getColumnIndex(Albums.LAST_YEAR)));
|
MediaStore_Audio_Artists_AlbumsTest.java | 110 assertEquals(Audio1.YEAR, c.getInt(c.getColumnIndex(Albums.FIRST_YEAR))); 111 assertEquals(Audio1.YEAR, c.getInt(c.getColumnIndex(Albums.LAST_YEAR)));
|
/external/chromium/third_party/icu/source/tools/genren/ |
genren.pl | 72 $YEAR = strftime "%Y",localtime; 77 * Copyright (C) 2002-$YEAR, International Business Machines
|
/external/webkit/JavaScriptCore/tests/mozilla/ecma/Date/ |
15.9.3.1-2.js | 24 ECMA Section: 15.9.3.1 new Date (year, month, date, hours, minutes, seconds, ms) 31 1. Call ToNumber(year) 59 var TITLE = "new Date( year, month, date, hours, minutes, seconds, ms )"; 71 var YEAR = 9; 210 testcases[item++] = new TestCase( SECTION, DateString+".getFullYear()", ResultArray[YEAR], DateCase.getFullYear() );
|
15.9.3.1-3.js | 24 ECMA Section: 15.9.3.1 new Date (year, month, date, hours, minutes, seconds, ms) 31 1. Call ToNumber(year) 59 var TITLE = "new Date( year, month, date, hours, minutes, seconds, ms )"; 71 var YEAR = 9; 188 testcases[item++] = new TestCase( SECTION, DateString+".getFullYear()", ResultArray[YEAR], DateCase.getFullYear() );
|
15.9.3.1-4.js | 24 ECMA Section: 15.9.3.1 new Date (year, month, date, hours, minutes, seconds, ms) 31 1. Call ToNumber(year) 59 var TITLE = "new Date( year, month, date, hours, minutes, seconds, ms )"; 71 var YEAR = 9; 172 testcases[item++] = new TestCase( SECTION, DateString+".getFullYear()", ResultArray[YEAR], DateCase.getFullYear() );
|
15.9.3.1-5.js | 24 ECMA Section: 15.9.3.1 new Date (year, month, date, hours, minutes, seconds, ms) 31 1. Call ToNumber(year) 59 var TITLE = "new Date( year, month, date, hours, minutes, seconds, ms )"; 71 var YEAR = 9; 149 testcases[item++] = new TestCase( SECTION, DateString+".getFullYear()", ResultArray[YEAR], DateCase.getFullYear() );
|
15.9.3.2-1.js | 24 ECMA Section: 15.9.3.1 new Date (year, month, date, hours, minutes, seconds, ms) 31 1. Call ToNumber(year) 66 var YEAR = 9; 77 var TITLE = "Date( year, month, date, hours, minutes, seconds )"; 219 testcases[item++] = new TestCase( SECTION, DateString+".getFullYear()", ResultArray[YEAR], DateCase.getFullYear() );
|
15.9.3.2-2.js | 24 ECMA Section: 15.9.3.1 new Date (year, month, date, hours, minutes, seconds, ms) 31 1. Call ToNumber(year) 66 var YEAR = 9; 77 var TITLE = "Date( year, month, date, hours, minutes, seconds )"; 197 testcases[item++] = new TestCase( SECTION, DateString+".getFullYear()", ResultArray[YEAR], DateCase.getFullYear() );
|
15.9.3.2-3.js | 24 ECMA Section: 15.9.3.1 new Date (year, month, date, hours, minutes, seconds, ms) 31 1. Call ToNumber(year) 66 var YEAR = 9; 77 var TITLE = "Date( year, month, date, hours, minutes, seconds )"; 183 testcases[item++] = new TestCase( SECTION, DateString+".getFullYear()", ResultArray[YEAR], DateCase.getFullYear() );
|
15.9.3.2-4.js | 24 ECMA Section: 15.9.3.1 new Date (year, month, date, hours, minutes, seconds, ms) 31 1. Call ToNumber(year) 66 var YEAR = 9; 77 var TITLE = "Date( year, month, date, hours, minutes, seconds )"; 166 testcases[item++] = new TestCase( SECTION, DateString+".getFullYear()", ResultArray[YEAR], DateCase.getFullYear() );
|
15.9.3.2-5.js | 24 ECMA Section: 15.9.3.1 new Date (year, month, date, hours, minutes, seconds, ms) 31 1. Call ToNumber(year) 66 var YEAR = 9; 77 var TITLE = "Date( year, month, date, hours, minutes, seconds )"; 148 testcases[item++] = new TestCase( SECTION, DateString+".getFullYear()", ResultArray[YEAR], DateCase.getFullYear() );
|
15.9.3.8-1.js | 67 var YEAR = 9; 277 testcases[item++] = new TestCase( SECTION, DateString+".getFullYear()", ResultArray[YEAR], DateCase.getFullYear() );
|