/external/libpng/ |
Y2KINFO | 13 Libpng only has three year fields. One is a 2-byte unsigned integer 18 "png_uint_16 year" in png_time_struct. 37 clock time, which returns (year - 1900), which we properly convert to 38 the full 4-digit year. There is a possibility that applications using 40 function, or that they are incorrectly passing only a 2-digit year 41 instead of "year - 1900" into the png_convert_from_struct_tm() function, 47 integer to hold the year, and can hold years as large as 65535.
|
/external/v8/src/ |
date.js | 85 function TimeInYear(year) { 86 return DaysInYear(year) * msPerDay; 90 // Compute number of days given a year, month, date. 96 function MakeDay(year, month, date) { 97 if (!$isFinite(year) || !$isFinite(month) || !$isFinite(date)) return $NaN; 100 year = TO_INTEGER_MAP_MINUS_ZERO(year); 104 if (year < kMinYear || year > kMaxYear || 109 // Now we rely on year and month being SMIs [all...] |
/frameworks/base/media/libdrm/mobile1/include/parser/ |
parser_rel.h | 43 #define YMD_HMS_2_INT(year, mon, day, date, hour, min, sec, time) do{\ 44 date = year * 10000 + mon * 100 + day;\ 54 int32_t date; /**< year * 10000 + mon *100 + day */ 82 * Input year and month, return how many days that month have 83 * \param year (in)Input the year 89 int32_t drm_monthDays(int32_t year, int32_t month); 93 * \param year year of the date 103 int32_t drm_checkDate(int32_t year, int32_t month, int32_t day, int32_t hour, int32_t min, int32_t sec) [all...] |
/external/icu4c/test/compat/ |
tzone.pl | 8 print "Usage: tzone [year month day hour minute]\n"; 18 my $year = 0; 26 ($year, $month, $day, $hour, $minute) = @ARGV; 27 print "The date we are using is: $month-$day-$year $hour:$minute.\n"; 52 my @result = `./tzdate $year $month $day $hour $minute $USECURRENT`;
|
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/test/testdata/ |
calendar.txt | 26 // "0/1/1912/june/4 == gregorian year=1912, ERA=AD, same month, same day 29 "ERA=1,YEAR=1,MONTH=JUNE,DATE=4", // tw 30 "ERA=1,YEAR=1912,MONTH=,DATE=" // greg 34 "ERA=1,YEAR=3,MONTH=FEBRUARY,DATE=12", // tw 35 "ERA=1,YEAR=1914,MONTH=,DATE=" // greg 39 "ERA=1,YEAR=96,MONTH=FEBRUARY,DATE=12", // tw 40 "ERA=1,YEAR=2007,MONTH=,DATE=" // greg 46 "ERA=0,YEAR=2,MONTH=JANUARY,DATE=24", // tw 47 "ERA=1,YEAR=1910,MONTH=JANUARY,DATE=24", // greg 55 "YEAR=1964,MONTH=8,DATE=4", // gre [all...] |
/packages/apps/Contacts/src/com/android/contacts/datepicker/ |
DatePicker.java | 19 // This is a fork of the standard Android DatePicker that additionally allows toggling the year 48 * A view for selecting a month / year / day based on a calendar like layout. 57 /** Magic year that represents "no year" */ 88 * @param year The year that was set or {@link DatePicker#NO_YEAR} if no year was set 93 void onDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth); 159 mYearPicker = (NumberPicker) findViewById(R.id.year); 198 init(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH), null) 487 int year = (mYearOptional && !mHasYear) ? NO_YEAR : mYear; local [all...] |
/external/icu4c/i18n/ |
hebrwcal.cpp | 41 { -5000000, -5000000, 5000000, 5000000}, // YEAR 68 * Due to the rules for postponing the start of the year to avoid having 69 * certain holidays fall on the sabbath, the year can end up being three 90 * The cumulative # of days to the end of each month in a non-leap year 114 * The cumulative # of days to the end of each month in a leap year 225 int32_t year = get(UCAL_YEAR, status); local 231 if (acrossAdar1 && month>=ADAR_1 && !isLeapYear(year)) { 238 ++year; 245 if (acrossAdar1 && month<=ADAR_1 && !isLeapYear(year)) { 252 --year; 317 int32_t year = get(UCAL_YEAR, status); local 560 int32_t year = (int32_t)( ((19. * m + 234.) \/ 235.) + 1.); \/\/ Years (approx) local 612 int32_t year; local [all...] |
buddhcal.h | 37 * except for the year and era. Years are numbered since the birth of the 136 * Return the extended year defined by the current fields. This will 137 * use the UCAL_EXTENDED_YEAR field or the UCAL_YEAR and supra-year fields (such 140 * @return the extended year 160 * given month in the given extended year. Subclasses should override 162 * @param eyear the extended year 165 * the given year, otherwise, compute the day before the first day of 168 * day of the given month and year 188 * Returns the year in which the default century begins 197 * indicate an uninitialized state. Once the system default century date and year [all...] |
persncal.h | 35 * The Persian calendar is strictly solar, and thus a Persian year has twelve 36 * solar months. A Persian year is about 365 days long, except in leap years 59 * Constant for Farvardin, the 1st month of the Persian year. 65 * Constant for Ordibehesht, the 2nd month of the Persian year. 71 * Constant for Khordad, the 3rd month of the Persian year. 77 * Constant for Tir, the 4th month of the Persian year. 83 * Constant for Mordad, the 5th month of the Persian year. 89 * Constant for Shahrivar, the 6th month of the Persian year. 95 * Constant for Mehr, the 7th month of the Persian year. 101 * Constant for Aban, the 8th month of the Persian year. [all...] |
japancal.cpp | 36 int16_t year; member in struct:__anon8660 40 // Year Month Day 333 if(eyear == kEraInfo[era].year) { 334 // Yes, we're in the first year of this era. 346 if(eyear == kEraInfo[era].year) { 363 // EXTENDED_YEAR in JapaneseCalendar is a Gregorian year 365 int32_t year; local 369 year = internalGet(UCAL_EXTENDED_YEAR, kGregorianEpoch); 371 // Subtract one because year starts at 1 372 year = internalGet(UCAL_YEAR) + kEraInfo[internalGetEra()].year - 1 382 int32_t year = internalGet(UCAL_EXTENDED_YEAR); \/\/ Gregorian year local [all...] |
persncal.cpp | 27 = {0,31,62,93,124,155,186,216,246,276,306,336}; // 0-based, for day-in-year 37 { -5000000, -5000000, 5000000, 5000000}, // YEAR 106 * Determine whether a year is a leap year in the Persian calendar 108 UBool PersianCalendar::isLeapYear(int32_t year) 111 ClockMath::floorDivide(25 * year + 11, 33, remainder); 116 * Return the day # on which the given year starts. Days are counted 119 int32_t PersianCalendar::yearStart(int32_t year) { 120 return handleComputeMonthStart(year,0,FALSE); 127 * @param year The Persian yea 187 int32_t year; local 211 int32_t year, month, dayOfMonth, dayOfYear; local [all...] |
/external/webkit/Source/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...] |
/packages/apps/Contacts/src/com/android/contacts/editor/ |
EventFieldEditorView.java | 163 // if we changed to a type that requires a year, ensure that it is actually set 169 final int defaultYear = calendar.get(Calendar.YEAR); 171 // Check whether the year is optional 181 // This value is missing the year. Add it now 200 final int defaultYear = calendar.get(Calendar.YEAR); 202 // Check whether the year is optional 213 // Try parsing with year 217 oldYear = cal.get(Calendar.YEAR); 219 //cal.set(Calendar.YEAR, 0); 230 public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) [all...] |
/external/chromium/chrome/browser/resources/options/ |
autofill_edit_creditcard_overlay.js | 71 creditCard[4] = $('expiration-year').value; 84 $('expiration-month').onchange = $('expiration-year').onchange = 121 // Set the 'Expiration year' default options. 122 var expirationYear = $('expiration-year'); 126 var year = parseInt(date.getFullYear()); 128 var text = year + i; 144 $('expiration-year').selectedIndex = 0; 155 // The options for the year select control may be out-dated at this point, 156 // e.g. the user opened the options page before midnight on New Year's Eve 157 // and then loaded a credit card profile to edit in the new year, s [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
DatePicker.java | 41 * A view for selecting a month / year / day based on a calendar like layout. 78 * @param year The year that was set. 83 void onDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth); 149 mYearPicker = (NumberPicker) findViewById(R.id.year); 187 init(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH), null); 252 } else if (c == DateFormat.YEAR && !didYear) { 271 public void updateDate(int year, int monthOfYear, int dayOfMonth) { 272 if (mYear != year || mMonth != monthOfYear || mDay != dayOfMonth) { 273 mYear = (mYearOptional && year == 0) ? getCurrentYear() : year 470 int year = (mYearOptional && !mHasYear) ? 0 : mYear; local [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...] |
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/ |
YearPickerView.java | 75 for (int year = mController.getMinYear(); year <= mController.getMaxYear(); year++) { 76 years.add(String.format("%d", year)); 116 int year = getYearFromTextView(v); local 117 boolean selected = mController.getSelectedDay().year == year; 152 postSetSelectionCentered(mController.getSelectedDay().year - mController.getMinYear());
|