/packages/apps/Settings/src/com/android/settings/ |
DateTimeSettings.java | 174 mDummyDate.set(now.get(Calendar.YEAR), 11, 31, 13, 0, 0); 183 public void onDateSet(DatePicker view, int year, int month, int day) { 184 setDate(year, month, day); 236 calendar.get(Calendar.YEAR), 267 calendar.get(Calendar.YEAR), 339 /* package */ static void setDate(int year, int month, int day) { 342 c.set(Calendar.YEAR, year);
|
/external/icu4c/i18n/ |
calendar.cpp | 562 {/*N/A*/-1, /*N/A*/-1, /*N/A*/-1, /*N/A*/-1}, // YEAR 609 // local fields (YEAR, MONTH, DATE, HOUR, MINUTE, etc.) 631 // local fields (YEAR, MONTH, DATE, HOUR, MINUTE, etc.) 2682 int32_t year; local [all...] |
vtzone.cpp | 77 // Month length for non-leap year 190 int32_t year, month, dom, dow, doy, mid; local 191 Grego::timeToFields(time, year, month, dom, dow, doy, mid); 194 appendAsciiDigits(year, 4, str); 230 int32_t year = 0, month = 0, day = 0, hour = 0, min = 0, sec = 0; local 252 year = parseAsciiDigits(str, 0, 4, status); 264 int32_t maxDayOfMonth = Grego::monthLength(year, month); 265 if (year < 0 || month < 0 || month > 11 || day < 1 || day > maxDayOfMonth || 278 UDate time = Grego::fieldsToDay(year, month, day) * U_MILLIS_PER_DAY; 681 // Calculate start/end year and missing field 1934 int32_t year, month, dom, dow, doy, mid; local [all...] |
rbtz.cpp | 347 RuleBasedTimeZone::getOffset(uint8_t era, int32_t year, int32_t month, int32_t day, 356 return getOffset(era, year, month, day, dayOfWeek, millis, 357 Grego::monthLength(year, month), status); 362 RuleBasedTimeZone::getOffset(uint8_t era, int32_t year, int32_t month, int32_t day, 370 // Convert to extended year 371 year = 1 - year; 374 UDate time = (UDate)Grego::fieldsToDay(year, month, day) * U_MILLIS_PER_DAY + millis;
|
/cts/tools/host/src/com/android/cts/ |
HostUtils.java | 265 int year = cal.get(Calendar.YEAR); local 287 fmt.format(formatStr, year, month, date, hour, min, sec);
|
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/ |
DateTest.java | 100 static private long getTime(int year, int month, int date, int hour, 102 aCal.set(year, month, date, hour, minute, second);
|
/external/chromium/base/metrics/ |
field_trial_unittest.cc | 23 next_year_ = exploded.year; 27 last_year_ = exploded.year;
|
/external/chromium/base/ |
time_unittest.cc | 33 EXPECT_EQ(tms.tm_year + 1900, exploded.year); 215 exploded.year = 1970;
|
time_win.cc | 96 // number of leap year days between 1601 and 1970: (1970-1601)/4 excluding 185 st.wYear = exploded.year; 231 exploded->year = st.wYear;
|
/external/icu4c/i18n/unicode/ |
tzrule.h | 258 * Gets the time when this rule takes effect in the given year. 259 * @param year The Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc. 264 * @param result Receives the start time in the year. 265 * @return true if this rule takes effect in the year and the result is set to 269 UBool getStartInYear(int32_t year, int32_t prevRawOffset, int32_t prevDSTSavings, UDate& result) const; 379 * The constant representing the maximum year used for designating 395 * @param startYear The first year when this rule takes effect. 396 * @param endYear The last year when this rule takes effect. If this 414 * @param startYear The first year when this rule takes effect [all...] |
ucal.h | 63 * <code>UDate</code> (such as only year and month but no day in the month), 106 * specification of the historial Arabic astronomical calendar requires year, 186 * Field number indicating the year. This is a calendar-specific value. 193 * The first month of the year is 194 * <code>JANUARY</code>; the last depends on the number of months in a year. 214 * week number within the current year. The first week of the year, as 218 * the year. 251 * number within the current year. The first day of the year has value 1 [all...] |
vtzone.h | 203 * @param year The reference date's year 212 virtual int32_t getOffset(uint8_t era, int32_t year, int32_t month, int32_t day, 224 * @param year The reference date's year 234 virtual int32_t getOffset(uint8_t era, int32_t year, int32_t month, int32_t day,
|
calendar.h | 54 * <code>YEAR</code>, <code>MONTH</code>, <code>DAY</code>, <code>HOUR</code>, 90 * <code>UDate</code> (such as only year and month but no day in the month), 98 * start of the epoch: i.e., YEAR = 1970, MONTH = JANUARY, DATE = 1, etc. 129 * specification of the historial Arabic astronomical calendar requires year, 183 YEAR, // Example: 1..big number 199 YEAR_WOY, // 'Y' Example: 1..big number - Year of Week of Year 546 * roll(Calendar::DATE, true). When rolling on the year or Calendar::YEAR field, it 547 * will roll the year value in the range between getMinimum(Calendar::YEAR) and th [all...] |
/external/openssl/crypto/ |
o_time.c | 179 short year, month, day, hour, minute, second, member in struct:vms_vectime 207 result->tm_year = time_values.year - 1900; 229 * with restricted date types and overflows which cause the year 2038
|
/libcore/luni/src/main/java/java/util/zip/ |
ZipEntry.java | 277 int year = cal.get(Calendar.YEAR); local 278 if (year < 1980) { 284 modDate = ((cal.get(Calendar.YEAR) - 1980) << 9) | modDate;
|
/sdk/ddms/libs/ddmuilib/src/com/android/ddmuilib/location/ |
GpxParser.java | 191 int year = Integer.parseInt(m.group(1)); local 216 c.set(year, month, date, hourOfDay, minute, second);
|
/build/tools/zipalign/ |
ZipEntry.cpp | 377 int year; local 378 year = ptm->tm_year; 379 if (year < 80) 380 year = 80; 382 zdate = (year - 80) << 9 | (ptm->tm_mon+1) << 5 | ptm->tm_mday;
|
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/ |
SmsMessage.java | 547 int year = IccUtils.gsmBcdByteToInt(pdu[cur++]); local 569 time.year = year >= 90 ? year + 1900 : year + 2000; [all...] |
/frameworks/base/tools/aapt/ |
ZipEntry.cpp | 377 int year; local 378 year = ptm->tm_year; 379 if (year < 80) 380 year = 80; 382 zdate = (year - 80) << 9 | (ptm->tm_mon+1) << 5 | ptm->tm_mday;
|
/external/wpa_supplicant/ |
x509v3.c | 516 int year, month, day, hour, min, sec; local 537 if (sscanf(pos, "%02d", &year) != 1) { 539 "UTCTime year", buf, len); 542 if (year < 50) 543 year += 2000; 545 year += 1900; 554 if (sscanf(pos, "%04d", &year) != 1) { 556 "GeneralizedTime year", buf, len); 601 if (os_mktime(year, month, day, hour, min, sec, val) < 0) { 604 if (year < 1970) [all...] |
/external/wpa_supplicant_6/wpa_supplicant/src/tls/ |
x509v3.c | 516 int year, month, day, hour, min, sec; local 537 if (sscanf(pos, "%02d", &year) != 1) { 539 "UTCTime year", buf, len); 542 if (year < 50) 543 year += 2000; 545 year += 1900; 554 if (sscanf(pos, "%04d", &year) != 1) { 556 "GeneralizedTime year", buf, len); 601 if (os_mktime(year, month, day, hour, min, sec, val) < 0) { 604 if (year < 1970) [all...] |
/external/wpa_supplicant_8/src/tls/ |
x509v3.c | 551 int year, month, day, hour, min, sec; local 572 if (sscanf(pos, "%02d", &year) != 1) { 574 "UTCTime year", buf, len); 577 if (year < 50) 578 year += 2000; 580 year += 1900; 589 if (sscanf(pos, "%04d", &year) != 1) { 591 "GeneralizedTime year", buf, len); 636 if (os_mktime(year, month, day, hour, min, sec, val) < 0) { 639 if (year < 1970) [all...] |
/bionic/libc/tzcode/ |
localtime.c | 199 #define DAY_OF_YEAR 1 /* n - day of year */ 247 static time_t transtime P((time_t janfirst, int year, 884 ** Day of year. 902 ** Given the Epoch-relative time of January 1, 00:00:00 UTC, in a year, the 903 ** year, a rule, and the offset from UTC at the time that rule takes effect, 908 transtime(janfirst, year, rulep, offset) 910 const int year; 920 leapyear = isleap(year); 938 ** n - day of year. 958 yy0 = (rulep->r_mon <= 2) ? (year - 1) : year 1073 register int year; local [all...] |
/external/icu4c/test/intltest/ |
calcasts.cpp | 62 checkField(cal, UCAL_YEAR, cases[i].year,status); 74 cal->set(UCAL_YEAR, cases[i].year); 128 // Julian Day Era Year Month Day WkDay Hour Min Sec 218 // Julian Day Era Year Month Day WkDay Hour Min Sec 265 // Test cases taken from a table of 14 "year types" in the Help file 288 // Julian Day Era Year Month Day WkDay Hour Min Sec 305 // G.YY/MM/DD Era Year Month Day WkDay Hour Min Sec 337 // Julian Day Era Year Month Day WkDay Hour Min Sec 394 // JD Era Year Month Day WkDay Hour Min Sec 414 // above is first coptic leap year [all...] |
/external/icu4c/tools/tzcode/ |
localtime.c | 132 #define DAY_OF_YEAR 1 /* n - day of year */ 178 static time_t transtime(time_t janfirst, int year, 789 ** Day of year. 807 ** Given the Epoch-relative time of January 1, 00:00:00 UTC, in a year, the 808 ** year, a rule, and the offset from UTC at the time that rule takes effect, 813 transtime(janfirst, year, rulep, offset) 815 const int year; 825 leapyear = isleap(year); 843 ** n - day of year. 863 yy0 = (rulep->r_mon <= 2) ? (year - 1) : year 977 register int year; local [all...] |