/external/webkit/JavaScriptCore/tests/mozilla/ecma/Date/ |
15.9.5.36-4.js | 24 ECMA Section: 15.9.5.36 Date.prototype.setFullYear(year [, mon [, date ]] ) 33 2. Call ToNumber(year). 46 Added test cases for Year 2000 Compatilibity Testing. 53 writeHeaderToLog( SECTION + " Date.prototype.setFullYear(year [, mon [, date ]] )"); 132 // fixed_year = ( ExpectDate.year >=1900 || ExpectDate.year < 2000 ) ? ExpectDate.year - 1900 : ExpectDate.year; 137 testcases[item++] = new TestCase( SECTION, DateString+".getUTCFullYear()", UTCDate.year, DateCase.getUTCFullYear() ); 146 testcases[item++] = new TestCase( SECTION, DateString+".getFullYear()", LocalDate.year, DateCase.getFullYear() ) [all...] |
15.9.5.36-5.js | 24 ECMA Section: 15.9.5.36 Date.prototype.setFullYear(year [, mon [, date ]] ) 33 2. Call ToNumber(year). 46 Added test cases for Year 2000 Compatilibity Testing. 53 writeHeaderToLog( SECTION + " Date.prototype.setFullYear(year [, mon [, date ]] )"); 119 // fixed_year = ( ExpectDate.year >=1900 || ExpectDate.year < 2000 ) ? ExpectDate.year - 1900 : ExpectDate.year; 124 testcases[item++] = new TestCase( SECTION, DateString+".getUTCFullYear()", UTCDate.year, DateCase.getUTCFullYear() ); 133 testcases[item++] = new TestCase( SECTION, DateString+".getFullYear()", LocalDate.year, DateCase.getFullYear() ) [all...] |
15.9.5.36-6.js | 24 ECMA Section: 15.9.5.36 Date.prototype.setFullYear(year [, mon [, date ]] ) 33 2. Call ToNumber(year). 46 Added test cases for Year 2000 Compatilibity Testing. 53 writeHeaderToLog( SECTION + " Date.prototype.setFullYear(year [, mon [, date ]] )"); 106 // fixed_year = ( ExpectDate.year >=1900 || ExpectDate.year < 2000 ) ? ExpectDate.year - 1900 : ExpectDate.year; 111 testcases[item++] = new TestCase( SECTION, DateString+".getUTCFullYear()", UTCDate.year, DateCase.getUTCFullYear() ); 120 testcases[item++] = new TestCase( SECTION, DateString+".getFullYear()", LocalDate.year, DateCase.getFullYear() ) [all...] |
15.9.5.36-7.js | 24 ECMA Section: 15.9.5.36 Date.prototype.setFullYear(year [, mon [, date ]] ) 33 2. Call ToNumber(year). 46 Added test cases for Year 2000 Compatilibity Testing. 53 writeHeaderToLog( SECTION + " Date.prototype.setFullYear(year [, mon [, date ]] )"); 91 // fixed_year = ( ExpectDate.year >=1900 || ExpectDate.year < 2000 ) ? ExpectDate.year - 1900 : ExpectDate.year; 96 testcases[item++] = new TestCase( SECTION, DateString+".getUTCFullYear()", UTCDate.year, DateCase.getUTCFullYear() ); 105 testcases[item++] = new TestCase( SECTION, DateString+".getFullYear()", LocalDate.year, DateCase.getFullYear() ) [all...] |
15.9.5.37-2.js | 24 ECMA Section: 15.9.5.37 Date.prototype.setUTCFullYear(year [, mon [, date ]] ) 32 2. Call ToNumber(year). 45 Added some Year 2000 test cases. 51 writeHeaderToLog( SECTION + " Date.prototype.setUTCFullYear(year [, mon [, date ]] )"); 138 // fixed_year = ( ExpectDate.year >=1900 || ExpectDate.year < 2000 ) ? ExpectDate.year - 1900 : ExpectDate.year; 143 testcases[item++] = new TestCase( SECTION, DateString+".getUTCFullYear()", UTCDate.year, DateCase.getUTCFullYear() ); 152 testcases[item++] = new TestCase( SECTION, DateString+".getFullYear()", LocalDate.year, DateCase.getFullYear() ) [all...] |
15.9.5.37-3.js | 24 ECMA Section: 15.9.5.37 Date.prototype.setUTCFullYear(year [, mon [, date ]] ) 32 2. Call ToNumber(year). 45 Added some Year 2000 test cases. 51 writeHeaderToLog( SECTION + " Date.prototype.setUTCFullYear(year [, mon [, date ]] )"); 124 // fixed_year = ( ExpectDate.year >=1900 || ExpectDate.year < 2000 ) ? ExpectDate.year - 1900 : ExpectDate.year; 129 testcases[item++] = new TestCase( SECTION, DateString+".getUTCFullYear()", UTCDate.year, DateCase.getUTCFullYear() ); 138 testcases[item++] = new TestCase( SECTION, DateString+".getFullYear()", LocalDate.year, DateCase.getFullYear() ) [all...] |
15.9.5.37-4.js | 24 ECMA Section: 15.9.5.37 Date.prototype.setUTCFullYear(year [, mon [, date ]] ) 32 2. Call ToNumber(year). 45 Added some Year 2000 test cases. 51 writeHeaderToLog( SECTION + " Date.prototype.setUTCFullYear(year [, mon [, date ]] )"); 106 // fixed_year = ( ExpectDate.year >=1900 || ExpectDate.year < 2000 ) ? ExpectDate.year - 1900 : ExpectDate.year; 111 testcases[item++] = new TestCase( SECTION, DateString+".getUTCFullYear()", UTCDate.year, DateCase.getUTCFullYear() ); 120 testcases[item++] = new TestCase( SECTION, DateString+".getFullYear()", LocalDate.year, DateCase.getFullYear() ) [all...] |
15.9.5.37-5.js | 24 ECMA Section: 15.9.5.37 Date.prototype.setUTCFullYear(year [, mon [, date ]] ) 32 2. Call ToNumber(year). 45 Added some Year 2000 test cases. 51 writeHeaderToLog( SECTION + " Date.prototype.setUTCFullYear(year [, mon [, date ]] )"); 89 // fixed_year = ( ExpectDate.year >=1900 || ExpectDate.year < 2000 ) ? ExpectDate.year - 1900 : ExpectDate.year; 94 testcases[item++] = new TestCase( SECTION, DateString+".getUTCFullYear()", UTCDate.year, DateCase.getUTCFullYear() ); 103 testcases[item++] = new TestCase( SECTION, DateString+".getFullYear()", LocalDate.year, DateCase.getFullYear() ) [all...] |
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...] |
/external/v8/src/ |
dateparser.cc | 36 int year = 0; // Default year is 0 (=> 2000) for KJS compatibility. local 44 year = comp_[0]; 51 if (index_ == 3) year = comp_[2]; 61 year = comp_[0]; 66 year = comp_[1]; 70 if (Between(year, 0, 49)) year += 2000; 71 else if (Between(year, 50, 99)) year += 1900 [all...] |
/external/icu4c/i18n/unicode/ |
gregocal.h | 50 * Prior to the institution of the Gregorian Calendar, New Year's Day was March 25. To 56 * 53. Week 1 for a year is the first week that contains at least 57 * <code>getMinimalDaysInFirstWeek()</code> days from that year. It thus 60 * Weeks between week 1 of one year and week 1 of the following year are 99 * cout << "YEAR: " << calendar->get( UCAL_YEAR, success ) << endl; 121 * cout << "YEAR: " << calendar->get( UCAL_YEAR, success ) << endl; 234 * @param year The value used to set the YEAR time field in the calendar. 242 GregorianCalendar(int32_t year, int32_t month, int32_t date, UErrorCode& success) [all...] |
/development/tools/zoneinfo/tzdata2009s/ |
yearistype.sh | 10 echo "$0: wild year - $1" >&2 39 echo "$0: usage is $0 year even|odd|uspres|nonpres|nonuspres" >&2
|
/external/icu4c/test/compat/ |
tzdate.c | 32 int64_t getSystemCurrentTime(char* systime, int year, int month, int day, int hour, int minute, int useCurrentTime); 39 int year, month, day, hour, minute; local 44 sysyear = year = month = day = 0; 51 year = atoi(argv[1]); 58 /* format year for system time */ 59 sysyear = year - 1900; 109 int64_t getSystemCurrentTime(char* systime, int year, int month, int day, int hour, int minute, int useCurrentTime) { 119 ts.tm_year = year;
|
/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...] |
/dalvik/libcore/luni/src/main/java/java/util/ |
Date.java | 66 * @param year 67 * the year, 0 is 1900. 77 public Date(int year, int month, int day) { 79 cal.set(1900 + year, month, day); 87 * @param year 88 * the year, 0 is 1900. 102 public Date(int year, int month, int day, int hour, int minute) { 104 cal.set(1900 + year, month, day, hour, minute); 112 * @param year 113 * the year, 0 is 1900 389 int year = -1, month = -1, date = -1; local [all...] |
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
RecurrenceProcessor.java | 314 int realYear = iterator.year; 323 + "/" + iterator.year + " day=" + day); 330 realYear = t.year; 336 + "/" + t.year); 353 + "/" + t.year 552 // them to year/month/day values in the local timezone. 567 // them to year/month/day values in the local timezone. 580 // for fast comparisons and that is easy to generate from year/month/day 680 freqField = Time.YEAR; 726 // We need the "until" year/month/day values to be in the sam 1000 int year = date.year; local [all...] |
/external/webkit/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/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/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...] |