/packages/apps/UnifiedEmail/src/com/android/mail/ |
FormattedDateBuilder.java | 83 final int thenYear = time.year; 88 return (thenYear == time.year)
|
/external/chromium_org/third_party/WebKit/Source/core/Resources/pagepopups/ |
calendarPicker.js | 107 * @param {!number} year 111 function formatJapaneseImperialEra(year, month) { 114 if (year > ImperialEraLimit) 116 if (year > 1989) 117 return "(??" + localizeNumber(year - 1988) + "?)"; 118 if (year == 1989) 120 if (year >= 1927) 121 return "(??" + localizeNumber(year - 1925) + "?)"; 122 if (year > 1912) 123 return "(??" + localizeNumber(year - 1911) + "?)" [all...] |
calendarPicker.css | 216 .year-list-view { 222 .year-list-cell { 229 .year-list-cell .label { 237 .year-list-cell .month-chooser { 287 .year-list-view .scrubby-scroll-bar { 291 .rtl .year-list-view .scrubby-scroll-bar {
|
/external/chromium_org/components/autofill/core/browser/ |
credit_card.cc | 43 bool ConvertYear(const base::string16& year, int* num) { 44 // If the |year| is empty, clear the stored value. 45 if (year.empty()) { 50 // Try parsing the |year| as a number. 51 if (base::StringToInt(year, num)) 294 base::string16 year = Expiration2DigitYearAsString(); local 295 if (!month.empty() && !year.empty()) 296 return month + ASCIIToUTF16("/") + year; 302 base::string16 year = Expiration4DigitYearAsString(); local 303 if (!month.empty() && !year.empty() 545 base::string16 year = local 654 int year; local [all...] |
/frameworks/base/core/java/android/widget/ |
DatePicker.java | 54 * year, month, and day spinners or a {@link CalendarView}. The set of spinners 136 * @param year The year that was set. 141 void onDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth); 200 mTempDate.set(Calendar.YEAR, newVal); 205 setDate(mTempDate.get(Calendar.YEAR), mTempDate.get(Calendar.MONTH), 218 public void onSelectedDayChange(CalendarView view, int year, int month, int monthDay) { 219 setDate(year, month, monthDay); 241 // year 242 mYearSpinner = (NumberPicker) findViewById(R.id.year); [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowTime.java | 35 time.year = 1970; 52 time.year = other.year; 112 c.get(Calendar.YEAR) 123 public void set(int second, int minute, int hour, int monthDay, int month, int year) { 129 time.year = year; 137 public void set(int monthDay, int month, int year) { 138 set(0, 0, 0, monthDay, month, year); 153 time.year = 0 [all...] |
/libcore/luni/src/main/java/java/util/ |
SimpleTimeZone.java | 342 public int getOffset(int era, int year, int month, int day, int dayOfWeek, int time) { 347 if (month != Calendar.FEBRUARY || day != 29 || !isLeapYear(year)) { 351 if (!useDaylightTime() || era != GregorianCalendar.AD || year < startYear) { 377 year)) { 419 if (endMonth == Calendar.FEBRUARY && isLeapYear(year)) { 454 if (ruleMonth == Calendar.FEBRUARY && isLeapYear(year)) { 530 private boolean isLeapYear(int year) { 531 if (year > 1582) { 532 return year % 4 == 0 && (year % 100 != 0 || year % 400 == 0) [all...] |
/external/chromium_org/base/metrics/ |
field_trial.cc | 20 // Created a time value based on |year|, |month| and |day_of_month| parameters. 21 Time CreateTimeFromParams(int year, int month, int day_of_month) { 22 DCHECK_GT(year, 1970); 29 exploded.year = year; 220 kNoExpirationYear = exploded.year; 239 const int year, 246 year, month, day_of_month, randomization_type, 0, default_group_number); 254 const int year, 304 if (GetBuildTime() > CreateTimeFromParams(year, month, day_of_month) [all...] |
/external/lzma/C/Util/7z/ |
7zMain.c | 225 unsigned year, mon, day, hour, min, sec;
local 236 year = (unsigned)(1601 + v / PERIOD_400 * 400);
239 t = v / PERIOD_100; if (t == 4) t = 3; year += t * 100; v -= t * PERIOD_100;
240 t = v / PERIOD_4; if (t == 25) t = 24; year += t * 4; v -= t * PERIOD_4;
241 t = v / 365; if (t == 4) t = 3; year += t; v -= t * 365;
243 if (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0))
253 s = UIntToStr(s, year, 4); *s++ = '-';
|
/frameworks/base/core/java/android/text/format/ |
DateFormat.java | 117 public static final char YEAR = 'y'; 255 int year = value.indexOf('y'); local 257 if (month >= 0 && day >= 0 && year >= 0) { 259 if (year < month && year < day) { 266 if (day < year) { 272 if (month < year) { 310 * 3 elements ({@link #DATE}, {@link #MONTH}, and {@link #YEAR}) in the order 314 * not just the day, month, and year, and not necessarily in the same 502 replacement = getYearString(inDate.get(Calendar.YEAR), count) [all...] |
/external/chromium/base/metrics/ |
field_trial.cc | 34 const int year, 48 DCHECK_GT(year, 1970); 55 exploded.year = year; 226 const int kTwoYearsFromNow = exploded.year;
|
/external/chromium/net/ftp/ |
ftp_util.cc | 172 if (!base::StringToInt(rest, &time_exploded.year)) { 199 // Guess the year. 203 // If it's not possible for the parsed date to be in the current year, 204 // use the previous year. 208 time_exploded.year = current_exploded.year - 1; 210 time_exploded.year = current_exploded.year;
|
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-0.9/ |
date-format-tofte.js | 122 // leap year or not. 1 if leap year, 0 if not. 191 // there's a chance it's "week 1" of next year. 200 // there's a chance it belongs in the old year. 210 // of the previous year, as the date, and then just 219 // first day of the year fell on a thursday, or earlier. 222 // first day of the year fell on a friday, or later. 232 // A full numeric representation of a year, 4 digits 254 // A two-digit representation of a year 259 // The day of the year, zero indexed! 0 through 36 [all...] |
date-format-xparb.js | 303 // Find the first Thursday of the year 311 var year = this.getFullYear(); 312 return ((year & 3) == 0 && (year % 100 || (year % 400 == 0 && year)));
|
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-0.9.1/ |
date-format-tofte.js | 122 // leap year or not. 1 if leap year, 0 if not. 191 // there's a chance it's "week 1" of next year. 200 // there's a chance it belongs in the old year. 210 // of the previous year, as the date, and then just 219 // first day of the year fell on a thursday, or earlier. 222 // first day of the year fell on a friday, or later. 232 // A full numeric representation of a year, 4 digits 254 // A two-digit representation of a year 259 // The day of the year, zero indexed! 0 through 36 [all...] |
date-format-xparb.js | 303 // Find the first Thursday of the year 311 var year = this.getFullYear(); 312 return ((year & 3) == 0 && (year % 100 || (year % 400 == 0 && year)));
|
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-1.0/ |
date-format-tofte.js | 122 // leap year or not. 1 if leap year, 0 if not. 191 // there's a chance it's "week 1" of next year. 200 // there's a chance it belongs in the old year. 210 // of the previous year, as the date, and then just 219 // first day of the year fell on a thursday, or earlier. 222 // first day of the year fell on a friday, or later. 232 // A full numeric representation of a year, 4 digits 254 // A two-digit representation of a year 259 // The day of the year, zero indexed! 0 through 36 [all...] |
date-format-xparb.js | 303 // Find the first Thursday of the year 311 var year = this.getFullYear(); 312 return ((year & 3) == 0 && (year % 100 || (year % 400 == 0 && year)));
|
/external/chromium_org/third_party/openssl/openssl/crypto/asn1/ |
a_utctm.c | 248 int year; local 266 year = g2(s->data); 267 if (year < 50) 268 year += 100; 269 return_cmp(year, tm->tm_year);
|
/external/icu4c/tools/toolutil/ |
writesrc.c | 51 char year[8]; local 57 strftime(year, sizeof(year), "%Y", lt); 60 fprintf(f, header, year, filename, buffer); 62 fprintf(f, header, year, filename, generator);
|
/external/openssl/crypto/asn1/ |
a_utctm.c | 248 int year; local 266 year = g2(s->data); 267 if (year < 50) 268 year += 100; 269 return_cmp(year, tm->tm_year);
|
/libcore/luni/src/test/java/libcore/java/util/ |
CalendarTest.java | 146 private void testSetSelfConsistent(TimeZone timeZone, int year, int month, int day) { 151 calendar.set(year, month, day, hour, minute); 152 assertEquals(year, calendar.get(Calendar.YEAR)); 196 int year, int month, int day, int hour, int minute) { 197 assertEquals(year, calendar.get(Calendar.YEAR)); 212 cal.set(Calendar.YEAR, 1970);
|
/external/chromium_org/chrome/browser/google_apis/ |
time_util.cc | 95 if (!base::StringToInt(parts[0], &exploded.year) || 153 exploded.year, exploded.month, exploded.day_of_month, 165 exploded.year, exploded.month, exploded.day_of_month,
|
/external/chromium_org/third_party/WebKit/Source/core/html/ |
DateTimeLocalInputType.cpp | 128 dateTimeFieldsState.year(), 139 dateTimeFieldsState.year(), 148 dateTimeFieldsState.year(),
|
/external/chromium_org/third_party/icu/source/i18n/ |
basictz.cpp | 155 // within roughly 1 year from the specified date 161 int32_t year, month, dom, dow, doy, mid; local 166 year, month, dom, dow, doy, mid); 167 int32_t weekInMonth = Grego::dayOfWeekInMonth(year, month, dom); 179 dtr, year, AnnualTimeZoneRule::MAX_YEAR); 186 // and within roughly 1 year from the next transition 193 year, month, dom, dow, doy, mid); 194 weekInMonth = Grego::dayOfWeekInMonth(year, month, dom); 199 dtr, year - 1, AnnualTimeZoneRule::MAX_YEAR); 224 year, month, dom, dow, doy, mid) 479 int32_t year, month, dom, dow, doy, mid; local [all...] |