/developers/build/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/ |
CreditCardExpirationDatePickerView.java | 43 * credit card expiration month and year. 50 * Calendar instance used for month / year calculations. Should be reset before each use. 72 mMonth = mTempCalendar.get(Calendar.MONTH); 76 * Gets a temporary calendar set with the View's year and month. 81 mTempCalendar.set(Calendar.MONTH, mMonth); 103 int month = mTempCalendar.get(Calendar.MONTH); local 104 if (DEBUG) Log.d(TAG, "autofill(" + value + "): " + month + "/" + year); 105 setDate(year, month); 108 private void setDate(int year, int month) { [all...] |
/developers/build/prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/chat/ |
ChatAdapter.java | 164 * Converts time since epoch to Month Date Time. 167 * @return String formatted in Month Date HH:MM 172 String month = cal.getDisplayName(Calendar.MONTH, Calendar.SHORT, Locale.US); local 177 return month + " " + date + " " + hour + ":" + String.format(Locale.US, "%02d", minute);
|
/developers/samples/android/input/autofill/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/view/autofillable/ |
CreditCardExpirationDatePickerView.java | 45 * credit card expiration month and year. 52 * Calendar instance used for month / year calculations. Should be reset before each use. 74 mMonth = mTempCalendar.get(Calendar.MONTH); 78 * Gets a temporary calendar set with the View's year and month. 83 mTempCalendar.set(Calendar.MONTH, mMonth); 105 int month = mTempCalendar.get(Calendar.MONTH); local 106 if (DEBUG) Log.d(TAG, "autofill(" + value + "): " + month + "/" + year); 107 setDate(year, month); 110 private void setDate(int year, int month) { [all...] |
/developers/samples/android/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/chat/ |
ChatAdapter.java | 164 * Converts time since epoch to Month Date Time. 167 * @return String formatted in Month Date HH:MM 172 String month = cal.getDisplayName(Calendar.MONTH, Calendar.SHORT, Locale.US); local 177 return month + " " + date + " " + hour + ":" + String.format(Locale.US, "%02d", minute);
|
/external/curl/lib/ |
parsedate.c | 291 int month, year, leap_days; local 299 month = tm->tm_mon; 300 if(month < 0) { 301 year += (11 - month) / 12; 302 month = 11 - (11 - month) % 12; 304 else if(month >= 12) { 305 year -= month / 12; 306 month = month % 12 [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
Grego.java | 70 * Return the number of days in the given month. 72 * @param month 0-based month, with 0==Jan 73 * @return the number of days in the given month 75 public static final int monthLength(int year, int month) { 76 return MONTH_LENGTH[month + (isLeapYear(year) ? 12 : 0)]; 80 * Return the length of a previous month of the Gregorian calendar. 82 * @param month 0-based month, with 0==Jan 83 * @return the number of days in the month previous to the given mont 147 int month = (12 * (dayOfYear + correction) + 6) \/ 367; \/\/ zero-based month local [all...] |
/external/icu/icu4c/source/i18n/ |
basictz.cpp | 163 int32_t year, month, dom, dow, doy, mid; local 168 year, month, dom, dow, doy, mid); 169 int32_t weekInMonth = Grego::dayOfWeekInMonth(year, month, dom); 171 DateTimeRule *dtr = new DateTimeRule(month, weekInMonth, dow, mid, DateTimeRule::WALL_TIME); 195 year, month, dom, dow, doy, mid); 196 weekInMonth = Grego::dayOfWeekInMonth(year, month, dom); 198 dtr = new DateTimeRule(month, weekInMonth, dow, mid, DateTimeRule::WALL_TIME); 226 year, month, dom, dow, doy, mid); 227 weekInMonth = Grego::dayOfWeekInMonth(year, month, dom); 228 dtr = new DateTimeRule(month, weekInMonth, dow, mid, DateTimeRule::WALL_TIME) 481 int32_t year, month, dom, dow, doy, mid; local [all...] |
hebrwcal.cpp | 45 { 0, 0, 12, 12}, // MONTH 93 * The cumulative # of days to the end of each month in a non-leap year 117 * The cumulative # of days to the end of each month in a leap year 193 * need to be changed. For example, when adding one to the {@link #MONTH MONTH} field 204 * of a <tt>HebrewCalendar</tt>. Since the {@link #MONTH MONTH} field behaves 222 // We can't just do a set(MONTH, get(MONTH) + amount). The 227 int32_t month = get(UCAL_MONTH, status) local 319 int32_t month = get(UCAL_MONTH, status); local 585 int32_t month = 0; local [all...] |
indiancal.cpp | 63 { 0, 0, 11, 11}, // MONTH 107 * Return the length (in days) of the given month. 110 * @param month The month(0-based) in Indian calendar 112 int32_t IndianCalendar::handleGetMonthLength(int32_t eyear, int32_t month) const { 113 if (month < 0 || month > 11) { 114 eyear += ClockMath::floorDivide(month, 12, month); 117 if (isGregorianLeap(eyear + INDIAN_ERA_START) && month == 0) 164 int32_t year, month, day; local [all...] |
islamcal.cpp | 197 int32_t mask = (int32_t) (0x01 << (11 - m)); // set mask for bit corresponding to month 281 // a month as having 31 days. Since date parsing now uses range checks based 282 // on the table below, we need to change the range for last day of month to 289 { 0, 0, 11, 11}, // MONTH 387 * Return the day # on which the given month starts. Days are counted 391 * @param month The hijri month, 0-based (assumed to be in range 0..11) 393 int32_t IslamicCalendar::monthStart(int32_t year, int32_t month) const { 396 return (int32_t)uprv_ceil(29.5*month) 399 return trueMonthStart(12*(year-1) + month); 537 int32_t month = 12*(extendedYear-1); local 608 int32_t year, month, dayOfMonth, dayOfYear; local [all...] |
simpletz.cpp | 278 * day of week in the month (e.g., (2, WEDNESDAY) is the second Wednesday 279 * of the month). 281 * the day of week in the month counting backward from the end of the month. 282 * (e.g., (-1, MONDAY) is the last Monday in the month) 284 * specifies the day of the month, regardless of what day of the week it is. 285 * (e.g., (10, 0) is the tenth day of the month) 287 * specifies the day of the month counting backward from the end of the 288 * month, regardless of what day of the week it is (e.g., (-2, 0) is the 289 * next-to-last day of the month) 518 int32_t year, month, dom, dow; local [all...] |
/external/icu/icu4c/source/samples/cal/ |
cal.c | 47 static void cal(int32_t month, int32_t year, 119 int32_t month = -1, year = -1; local 156 /* Get the month and year to display, if specified */ 159 /* Month and year specified */ 161 sscanf(argv[optInd], "%d", (int*)&month); 164 /* Make sure the month value is legal */ 165 if(month < 0 || month > 12) { 166 printf("icucal: Bad value for month -- %d\n", (int)month); [all...] |
/external/icu/icu4c/source/test/cintltst/ |
utmstest.c | 353 int32_t month; member in struct:DotNetDateTimeTicks 362 * with the DateTime constructor taking int values for year, month, and date. 365 /* year, month, day, ticks */ 470 ucal_setDate(cal, dt->year, dt->month - 1, dt->day, &errorCode); /* Java & ICU use January = month 0. */ 475 (int)i, (int)(millis/dayMillis), (int)(icuDate/dayMillis), (int)dt->year, (int)dt->month, (int)dt->day); 483 (int)i, (int)(ticks/dayTicks), (int)(dt->ticks/dayTicks), (int)dt->year, (int)dt->month, (int)dt->day);
|
/external/icu/icu4c/source/test/intltest/ |
tsdtfmsy.cpp | 43 const UnicodeString* month; local 48 month=symbol->getMonths(cnt); 54 logln(month[i]); 73 const UnicodeString * month = symbol->getMonths(cnt,context[i],width[j]); local 78 logln(month[k]);
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
Grego.java | 68 * Return the number of days in the given month. 70 * @param month 0-based month, with 0==Jan 71 * @return the number of days in the given month 73 public static final int monthLength(int year, int month) { 74 return MONTH_LENGTH[month + (isLeapYear(year) ? 12 : 0)]; 78 * Return the length of a previous month of the Gregorian calendar. 80 * @param month 0-based month, with 0==Jan 81 * @return the number of days in the month previous to the given mont 145 int month = (12 * (dayOfYear + correction) + 6) \/ 367; \/\/ zero-based month local [all...] |
/external/iptables/extensions/ |
libxt_time.c | 93 unsigned int month = 1, day = 1, hour = 0, minute = 0, second = 0; local 107 month = strtoul(s, &e, 10); 108 if ((*e != '-' && *e != '\0') || month > 12) 141 tm.tm_mon = month - 1;
|
/external/libchrome/base/time/ |
time_posix.cc | 221 exploded->month = timestruct.tm_mon + 1; 232 CheckedNumeric<int> month = exploded.month; local 233 month--; 236 if (!month.IsValid() || !year.IsValid()) { 246 timestruct.tm_mon = month.ValueOrDie(); 346 // If |exploded.day_of_month| is set to 31 on a 28-30 day month, it will 347 // return the first day of the next month. Thus round-trip the time and
|
/external/pdfium/fxjs/ |
JS_Define.cpp | 137 int month = MonthFromTime(t); local 138 switch (month) {
|
cjs_util.cpp | 160 int month = JS_GetMonthFromTime(date) + 1; // One-based. local 171 month, day, hour, min, sec); 175 month, day, hour, min, sec); 179 month, day, hour, min, sec); 215 {L"m", month}, {L"d", day}, 238 time.tm_mon = month - 1;
|
/external/protobuf/src/google/protobuf/stubs/ |
time.cc | 62 int64 SecondsPerMonth(int month, bool leap) { 63 if (month == 2 && leap) { 64 return kSecondsPerDay * (kDaysInMonth[month] + 1); 66 return kSecondsPerDay * kDaysInMonth[month]; 75 time.month < 1 || time.month > 12 || 82 if (time.month == 2 && IsLeapYear(time.year)) { 83 return time.month <= kDaysInMonth[time.month] + 1; 85 return time.month <= kDaysInMonth[time.month] 115 int month = time.month; local 236 int month = 1; local [all...] |
/external/v8/src/ |
date.h | 167 int year, month, day; local 168 YearMonthDayFromDays(days, &year, &month, &day); 169 int new_days = DaysFromYearMonth(EquivalentYear(year), month) + day - 1; 186 // the corresponding year, month, and day. 187 void YearMonthDayFromDays(int days, int* year, int* month, int* day); 190 // the first day of the given month in the given year. 191 int DaysFromYearMonth(int year, int month); 194 void BreakDownTime(int64_t time_ms, int* year, int* month, int* day, 273 // Year/Month/Day cache.
|
/external/webrtc/webrtc/base/ |
timeutils.cc | 212 int month = tm.tm_mon; local 223 if (month < 0 || month > 11) 225 if (day < 0 || day >= mdays[month] + (expiry_in_leap_year && month == 2 - 1)) 234 day += cumul_mdays[month]; 242 if (expiry_in_leap_year && month <= 2 - 1) // |month| is zero based. 245 // Combine all variables into seconds from 1970-01-01 00:00 (except |month|
|
/external/wpa_supplicant_8/src/utils/ |
os.h | 120 * @month: Month (1 .. 12) 121 * @day: Day of month (1 .. 31) 132 int os_mktime(int year, int month, int day, int hour, int min, int sec, 140 int month; /* 1..12 */ member in struct:os_tm
|
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
XMPDateTimeImpl.java | 34 private int month = 0; field in class:XMPDateTimeImpl 81 this.month = intCalendar.get(Calendar.MONTH) + 1; // cal is from 0..12 103 this.month = calendar.get(Calendar.MONTH) + 1; // cal is from 0..12 148 return month; 155 public void setMonth(int month) 157 if (month < 1) 159 this.month = 1; 161 else if (month > 12 [all...] |
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/vo/ |
TwoWayBindingObject.java | 51 public final ObservableInt month = new ObservableInt(9); field in class:TwoWayBindingObject
|