/packages/apps/Calendar/tests/src/com/android/calendar/alerts/ |
Utils.java | 23 int month, int year, String timezone) { 25 t.set(second, minute, hour, monthDay, month, year);
|
/external/chromium/net/ftp/ |
ftp_directory_listing_parser_unittest.h | 24 int year; member in struct:net::FtpDirectoryListingParserTest::SingleLineTestData 54 EXPECT_EQ(test_case.year, time_exploded.year); 65 mock_current_time_exploded.year = 1994;
|
ftp_directory_listing_parser_windows.cc | 33 if (!base::StringToInt(date_parts[2], &time_exploded.year)) 35 if (time_exploded.year < 0) 37 // If year has only two digits then assume that 00-79 is 2000-2079, 39 if (time_exploded.year < 80) 40 time_exploded.year += 2000; 41 else if (time_exploded.year < 100) 42 time_exploded.year += 1900;
|
/external/icu4c/i18n/ |
indiancal.h | 54 * So When its a leap year in Gregorian calendar then Chaitra has 31 days. 57 * Years are counted in the Saka Era, which starts its year 0 in 78AD (by gregorian calendar). 77 * Constant for Chaitra, the 1st month of the Indian year. 82 * Constant for Vaisakha, the 2nd month of the Indian year. 87 * Constant for Jyaistha, the 3rd month of the Indian year. 92 * Constant for Asadha, the 4th month of the Indian year. 97 * Constant for Sravana, the 5th month of the Indian year. 102 * Constant for Bhadra the 6th month of the Indian year 107 * Constant for the Asvina, the 7th month of the Indian year. 112 * Constant for Kartika, the 8th month of the Indian year. [all...] |
ethpccal.cpp | 82 // Amelete Hihret year always. 85 eyear = internalGet(UCAL_EXTENDED_YEAR, 1); // Default to year 1 88 - AMETE_MIHRET_DELTA; // Default to year 1 of Amelete Mihret 90 // The year defaults to the epoch start, the era to AMETE_MIHRET 93 eyear = internalGet(UCAL_YEAR, 1); // Default to year 1 104 int32_t eyear, month, day, era, year; local 109 year = eyear + AMETE_MIHRET_DELTA; 113 year = eyear; 116 year = eyear + AMETE_MIHRET_DELTA; 122 internalSet(UCAL_YEAR, year); [all...] |
coptccal.h | 34 * the 1st month of the Coptic year. 40 * the 2nd month of the Coptic year. 46 * the 3rd month of the Coptic year. 52 * the 4th month of the Coptic year. 58 * the 5th month of the Coptic year. 64 * the 6th month of the Coptic year. 70 * the 7th month of the Coptic year. 76 * the 8th month of the Coptic year. 82 * the 9th month of the Coptic year. 88 * the 10th month of the Coptic year. [all...] |
gregoimp.cpp | 85 double Grego::fieldsToDay(int32_t year, int32_t month, int32_t dom) { 87 int32_t y = year - 1; 91 DAYS_BEFORE[month + (isLeapYear(year) ? 12 : 0)] + dom; // => month/dom 96 void Grego::dayToFields(double day, int32_t& year, int32_t& month, 103 // representation. We use 400-year, 100-year, and 4-year cycles. 104 // For example, the 4-year cycle has 4 years + 1 leap day; giving 106 int32_t n400 = ClockMath::floorDivide(day, 146097, doy); // 400-year cycle length 107 int32_t n100 = ClockMath::floorDivide(doy, 36524, doy); // 100-year cycle lengt [all...] |
coptccal.cpp | 62 eyear = internalGet(UCAL_EXTENDED_YEAR, 1); // Default to year 1 64 // The year defaults to the epoch start, the era to CE 67 eyear = 1 - internalGet(UCAL_YEAR, 1); // Convert to extended year 69 eyear = internalGet(UCAL_YEAR, 1); // Default to year 1 78 int32_t eyear, month, day, era, year; local 83 year = 1 - eyear; 86 year = eyear; 91 internalSet(UCAL_YEAR, year); 169 CopticCalendar::copticToJD(int32_t year, int32_t month, int32_t day) 171 return CECalendar::ceToJD(year, month, day, COPTIC_JD_EPOCH_OFFSET) [all...] |
taiwncal.h | 36 * except for the year and era. Years are numbered since 1912 AD (Gregorian), 133 * Return the extended year defined by the current fields. This will 134 * use the UCAL_EXTENDED_YEAR field or the UCAL_YEAR and supra-year fields (such 137 * @return the extended year 170 * Returns the year in which the default century begins 179 * indicate an uninitialized state. Once the system default century date and year 200 * Returns the beginning date of the 100-year window that dates 206 * Returns the first year of the 100-year window that dates with 212 * Initializes the 100-year window that dates with 2-digit year [all...] |
cecal.cpp | 21 { 1, 1, 5000000, 5000000}, // YEAR 110 CECalendar::ceToJD(int32_t year, int32_t month, int32_t date, int32_t jdEpochOffset) 114 year += month/13; 118 year += month/13 - 1; 123 + 365 * year // number of days from years 124 + ClockMath::floorDivide(year, 4) // extra day of leap year 131 CECalendar::jdToCE(int32_t julianDay, int32_t jdEpochOffset, int32_t& year, int32_t& month, int32_t& day) 133 int32_t c4; // number of 4 year cycle (1461 days) 134 int32_t r4; // remainder of 4 year cycle, always positiv [all...] |
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
RecurrenceProcessor.java | 432 int realYear = iterator.year; 441 + "/" + iterator.year + " day=" + day); 448 realYear = t.year; 454 + "/" + t.year); 471 + "/" + t.year 670 // them to year/month/day values in the local timezone. 685 // them to year/month/day values in the local timezone. 698 // for fast comparisons and that is easy to generate from year/month/day 801 freqField = Time.YEAR; 1144 int year = date.year; local [all...] |
/libcore/luni/src/main/java/java/util/ |
Date.java | 65 * @param year 66 * the year, 0 is 1900. 76 public Date(int year, int month, int day) { 78 cal.set(1900 + year, month, day); 86 * @param year 87 * the year, 0 is 1900. 101 public Date(int year, int month, int day, int hour, int minute) { 103 cal.set(1900 + year, month, day, hour, minute); 111 * @param year 112 * the year, 0 is 1900 390 int year = -1, month = -1, date = -1; local [all...] |
/external/webkit/Source/WebCore/html/ |
DateComponents.cpp | 44 // HTML5 uses ISO-8601 format with year >= 1. Gregorian calendar started in 56 static bool isLeapYear(int year) 58 if (year % 4) 60 if (!(year % 400)) 62 if (!(year % 100)) 68 static int maxDayOfMonth(int year, int month) 72 return isLeapYear(year) ? 29 : 28; 76 static int dayOfWeek(int year, int month, int day) 84 year--; 88 int highYear = year / 100 139 int year; local 192 int year = m_year; local 213 int year = m_year; local 597 int year = static_cast<int>(doubleYear); local [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Date/ |
15.9.5.5.js | 29 because it avoids the "year 2000 problem." 101 function GetYear( year ) { 103 if ( year >= 1900 && year < 2000 ) { 104 return year - 1900; 106 return year; 109 return year - 1900;
|
15.9.4.3.js | 26 var TITLE = "Date.UTC( year, month, date, hours, minutes, seconds, ms )"; 32 this.year = 0; 41 function utc( year, month, date, hours, minutes, seconds, ms ) { 43 d.year = Number(year); 58 if ( isNaN(d.year) && 0 <= ToInteger(d.year) && d.year <= 99 ) { 59 d.year = 1900 + ToInteger(d.year); [all...] |
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/ |
DatePickerDialog.java | 68 private static final String KEY_SELECTED_YEAR = "year"; 126 * @param year The year that was set. 131 void onDateSet(DatePickerDialog dialog, int year, int monthOfYear, int dayOfMonth); 149 * @param year The initial year of the dialog. 153 public static DatePickerDialog newInstance(OnDateSetListener callBack, int year, 157 ret.initialize(callBack, year, monthOfYear, dayOfMonth); 161 public void initialize(OnDateSetListener callBack, int year, int monthOfYear, int dayOfMonth) { 163 mCalendar.set(Calendar.YEAR, year) 402 adjustDayInMonthIfNeeded(mCalendar.get(Calendar.MONTH), year); local [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/ |
jsref.js | 314 var year = ( sign < 0 ) ? 1969 : 1970; 316 // subtract the current year's time from the time that's left. 317 timeToTimeZero -= sign * TimeInYear(year) 319 // if there's less than the current year's worth of time left, then break. 324 year += sign; 330 year += sign; 334 return ( year ); 475 var year = YearFromTime(t); 478 var april = TimeFromYear(year) + TimeInMonth(0, leap) + TimeInMonth(1,leap) + 490 var year = YearFromTime(t) [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_2/ |
jsref.js | 274 var year = ( sign < 0 ) ? 1969 : 1970; 276 // subtract the current year's time from the time that's left. 277 timeToTimeZero -= sign * TimeInYear(year) 279 // if there's less than the current year's worth of time left, then break. 284 year += sign; 290 year += sign; 294 return ( year ); 436 var year = YearFromTime(t); 439 var april = TimeFromYear(year) + TimeInMonth(0, leap) + TimeInMonth(1,leap) + 451 var year = YearFromTime(t) [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_3/Date/ |
shell.js | 320 var year = ( sign < 0 ) ? 1969 : 1970; 324 // subtract the current year's time from the time that's left. 325 timeToTimeZero -= sign * TimeInYear(year) 327 // if there's less than the current year's worth of time left, then break. 331 else {year += sign;} 336 else {year += sign;} 340 return ( year ); 461 var year = YearFromTime(t); 464 var april = TimeFromYear(year) + TimeInMonth(0, leap) + TimeInMonth(1,leap) + 476 var year = YearFromTime(t) [all...] |
/bionic/libc/tzcode/ |
asctime.c | 38 ** The ISO C 1999 and POSIX 1003.1-2004 standards prohibit padding the year, 47 ** For years that are more than four digits we put extra spaces before the year 49 ** a digit within a year and truncating the year (operating on the assumption 91 char year[INT_STRLEN_MAXIMUM(int) + 2]; local 101 ** Use strftime's %Y to generate the year, to avoid overflow problems 106 (void) strftime(year, sizeof year, "%Y", timeptr); 111 ((strlen(year) <= 4) ? ASCTIME_FMT : ASCTIME_FMT_B), 115 year); local [all...] |
/external/icu4c/tools/tzcode/ |
asctime.c | 38 ** The ISO C 1999 and POSIX 1003.1-2004 standards prohibit padding the year, 47 ** For years that are more than four digits we put extra spaces before the year 49 ** a digit within a year and truncating the year (operating on the assumption 91 char year[INT_STRLEN_MAXIMUM(int) + 2]; local 101 ** Use strftime's %Y to generate the year, to avoid overflow problems 106 (void) strftime(year, sizeof year, "%Y", timeptr); 111 ((strlen(year) <= 4) ? ASCTIME_FMT : ASCTIME_FMT_B), 115 year); local [all...] |
/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/testing/uiautomator_test_libraries/src/com/android/uiautomator/common/helpers/ |
DatePickerHelper.java | 32 public static final int YEAR = 2; 43 return getNumberPickerField(YEAR).getText(); 88 getNumberPickerIncrementButton(YEAR).click(); 97 getNumberPickerDecrementButton(YEAR).click(); 128 int calYear = cal.get(Calendar.YEAR); 162 // Adjust year 185 * @param year 189 private static int getDaysInMonth(int year, int month) { 191 cal.set(Calendar.YEAR, year); [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
TimeTest.java | 34 assertEquals(t.year, t2.year); 49 assertEquals(t.year, t2.year); 61 assertEquals(t.year, 2000); 70 assertEquals(t.year, 2000); 90 assertEquals(0, t.year); 121 a.year = 2000; 125 b.year = 2001; 135 assertEquals(2008, t.year); [all...] |
/external/v8/src/ |
dateparser.cc | 42 int year = 0; // Default year is 0 (=> 2000) for KJS compatibility. local 49 year = comp_[0]; 56 if (index_ == 3) year = comp_[2]; 65 year = comp_[0]; 70 year = comp_[1]; 75 if (Between(year, 0, 49)) year += 2000; 76 else if (Between(year, 50, 99)) year += 1900 [all...] |