/external/icu/icu4c/source/test/perf/DateFmtPerf/ |
datedata.h | 29 static int months[] = { variable
|
/libcore/ojluni/src/main/java/java/time/ |
Period.java | 65 import static java.time.temporal.ChronoUnit.MONTHS; 96 * such as '2 years, 3 months and 4 days'. 98 * This class models a quantity or amount of time in terms of years, months and days. 114 * {@link ChronoUnit#MONTHS MONTHS} and {@link ChronoUnit#DAYS DAYS}. 150 Collections.unmodifiableList(Arrays.<TemporalUnit>asList(YEARS, MONTHS, DAYS)); 157 * The number of months. 159 private final int months; field in class:Period 170 * The months and days units will be zero. 180 * Obtains a {@code Period} representing a number of months 265 int months = 0; local 334 int months = parseNumber(text, monthMatch, negate); local 1070 int months = in.readInt(); local [all...] |
Month.java | 65 import static java.time.temporal.ChronoUnit.MONTHS; 85 * {@code Month} is an enum representing the 12 months of the year - 177 * {@code Month} is an enum representing the 12 months of the year. 389 * @param months the months to add, positive or negative 392 public Month plus(long months) { 393 int amount = (int) (months % 12); 398 * Returns the month-of-year that is the specified number of months before this one. 405 * @param months the months to subtract, positive or negativ [all...] |
/libcore/ojluni/src/main/java/java/time/chrono/ |
ChronoPeriodImpl.java | 61 import static java.time.temporal.ChronoUnit.MONTHS; 109 Collections.unmodifiableList(Arrays.<TemporalUnit>asList(YEARS, MONTHS, DAYS)); 120 * The number of months. 122 final int months; field in class:ChronoPeriodImpl 131 ChronoPeriodImpl(Chronology chrono, int years, int months, int days) { 135 this.months = months; 144 } else if (unit == ChronoUnit.MONTHS) { 145 return months; 166 return years == 0 && months == 0 && days == 0 396 int months = in.readInt(); local [all...] |
IsoChronology.java | 109 * <li>month-of-year - There are 12 months in an ISO year, numbered from 1 to 12. 111 * Months 4, 6, 9 and 11 have 30 days, Months 1, 3, 5, 7, 8, 10 and 12 have 31 days. 435 * the difference in months, then the difference in days. 452 * the difference in months, then the difference in weeks, then in days. 462 * years, months and weeks in {@code ALIGNED_DAY_OF_WEEK_IN_MONTH}. 464 * the years, months and weeks have been handled. 546 long months = Math.subtractExact(fieldValues.remove(MONTH_OF_YEAR), 1); local 548 return LocalDate.of(y, 1, 1).plusMonths(months).plusDays(days); 571 * Obtains a period for this chronology based on years, months and days [all...] |
AbstractChronology.java | 78 import static java.time.temporal.ChronoUnit.MONTHS; 390 * then adding the difference in months, then the difference in days. 407 * the difference in months, then the difference in weeks, then in days. 417 * years, months and weeks in {@code ALIGNED_DAY_OF_WEEK_IN_MONTH}. 419 * the years, months and weeks have been handled. 554 long months = Math.subtractExact(fieldValues.remove(MONTH_OF_YEAR), 1); local 556 return date(y, 1, 1).plus(months, MONTHS).plus(days, DAYS); 584 long months = Math.subtractExact(fieldValues.remove(MONTH_OF_YEAR), 1); local 587 return date(y, 1, 1).plus(months, MONTHS).plus(weeks, WEEKS).plus(days, DAYS) 602 long months = Math.subtractExact(fieldValues.remove(MONTH_OF_YEAR), 1); local [all...] |
/external/ppp/pppd/plugins/radius/ |
util.c | 27 static const char * months[] = variable 40 if (strncmp (months[i], valstr, 3) == 0)
|
/external/icu/icu4c/source/samples/cal/ |
cal.c | 68 UChar *months [], UBool useLongNames, 71 static void free_months(UChar *months[]); 83 UChar *days [], UChar *months [], 93 /* Number of months in a year (yes, 13) */ 96 /* Separation between months in year view */ 172 /* Adjust because months are 0-based */ 237 UChar *months [MONTH_COUNT]; local 257 print_year(c, days, months, useLongNames, fdow, status); 363 UChar *months [], 372 get_symbols(fmt, monthType, months, MONTH_COUNT - 1, 0, 0, status); /* some locales have 13 months, no idea why * [all...] |
/libcore/ojluni/src/main/java/java/text/ |
DateFormatSymbols.java | 60 * months, the names of the days of the week, and the time zone data. 155 * of 13 strings (some calendars have 13 months), indexed by 159 String months[] = null; field in class:DateFormatSymbols 163 * 13 strings (some calendars have 13 months), indexed by 483 return Arrays.copyOf(months, months.length); 491 months = Arrays.copyOf(newMonths, newMonths.length); 743 hashCode = 11 * hashCode + Arrays.hashCode(months); 767 && Arrays.equals(months, that.months) [all...] |
/frameworks/base/core/tests/coretests/src/android/util/ |
RecurrenceRuleTest.java | 127 int months = 0; local 141 months++; 144 assertEquals(600, months);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
DatePicker.java | 116 String[] months = dfs.getShortMonths(); local 123 if (months[0].startsWith("1")) { 124 for (int i = 0; i < months.length; i++) { 125 months[i] = String.valueOf(i + 1); 132 mMonthPicker.setDisplayedValues(months); 190 reorderPickers(months); 205 private void reorderPickers(String[] months) { 216 if (months[0].startsWith("1")) {
|
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/picker/ |
PickerUtility.java | 37 public final String[] months; field in class:PickerUtility.DateConstant 43 months = symbols.getShortMonths();
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
CopticDate.java | 265 case MONTHS: return plusMonths(amountToAdd); 281 private CopticDate plusMonths(long months) { 282 if (months == 0) { 286 long calcEm = Math.addExact(curEm, months); 323 int months = (int) (totalMonths % 13); // safe local 324 return Period.of(Math.toIntExact(years), months, days);
|
/packages/apps/Contacts/src/com/android/contacts/datepicker/ |
DatePicker.java | 123 String[] months = dfs.getShortMonths(); local 130 if (months[0].startsWith("1")) { 131 for (int i = 0; i < months.length; i++) { 132 months[i] = String.valueOf(i + 1); 139 mMonthPicker.setDisplayedValues(months); 205 // We use numeric spinners for year and day, but textual months. Ask icu4c what
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/ |
calendar.py | 35 # Constants for months referenced later
89 # Full and abbreviated names of months (1-based arrays!!!)
223 value is a list of month rows. Each month row contains up to width months.
227 months = [
231 return [months[i:i+width] for i in range(0, len(months), width) ]
240 months = [
244 return [months[i:i+width] for i in range(0, len(months), width) ]
252 months = [ [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
calendar.py | 35 # Constants for months referenced later
89 # Full and abbreviated names of months (1-based arrays!!!)
219 value is a list of month rows. Each month row contains upto width months.
223 months = [
227 return [months[i:i+width] for i in range(0, len(months), width) ]
236 months = [
240 return [months[i:i+width] for i in range(0, len(months), width) ]
248 months = [ [all...] |
/external/python/cpython2/Lib/ |
calendar.py | 35 # Constants for months referenced later 89 # Full and abbreviated names of months (1-based arrays!!!) 224 value is a list of month rows. Each month row contains up to width months. 228 months = [ 232 return [months[i:i+width] for i in range(0, len(months), width) ] 241 months = [ 245 return [months[i:i+width] for i in range(0, len(months), width) ] 253 months = [all...] |
/external/python/cpython3/Lib/ |
calendar.py | 38 # Constants for months referenced later 92 # Full and abbreviated names of months (1-based arrays!!!) 224 value is a list of month rows. Each month row contains up to width months. 228 months = [ 232 return [months[i:i+width] for i in range(0, len(months), width) ] 241 months = [ 245 return [months[i:i+width] for i in range(0, len(months), width) ] 253 months = [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/ |
calendar.py | 35 # Constants for months referenced later 89 # Full and abbreviated names of months (1-based arrays!!!) 223 value is a list of month rows. Each month row contains upto width months. 227 months = [ 231 return [months[i:i+width] for i in range(0, len(months), width) ] 240 months = [ 244 return [months[i:i+width] for i in range(0, len(months), width) ] 252 months = [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/ |
calendar.py | 35 # Constants for months referenced later 89 # Full and abbreviated names of months (1-based arrays!!!) 223 value is a list of month rows. Each month row contains upto width months. 227 months = [ 231 return [months[i:i+width] for i in range(0, len(months), width) ] 240 months = [ 244 return [months[i:i+width] for i in range(0, len(months), width) ] 252 months = [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
calendar.py | 35 # Constants for months referenced later 89 # Full and abbreviated names of months (1-based arrays!!!) 223 value is a list of month rows. Each month row contains upto width months. 227 months = [ 231 return [months[i:i+width] for i in range(0, len(months), width) ] 240 months = [ 244 return [months[i:i+width] for i in range(0, len(months), width) ] 252 months = [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
calendar.py | 35 # Constants for months referenced later 89 # Full and abbreviated names of months (1-based arrays!!!) 223 value is a list of month rows. Each month row contains upto width months. 227 months = [ 231 return [months[i:i+width] for i in range(0, len(months), width) ] 240 months = [ 244 return [months[i:i+width] for i in range(0, len(months), width) ] 252 months = [all...] |
/external/emma/lib/internal/ |
stamptool.jar | |
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/types/ |
TimestampTagTest.java | 95 int months = cal.get(Calendar.MONTH) + 1; // 0..12 local 101 String result = String.valueOf(years) + "-" + String.valueOf(months) + "-"
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
DatatypeFactory.java | 208 * specifying the <code>Duration</code> as isPositive, years, months, days, hours, minutes, seconds.</p> 220 * @param months of this <code>Duration</code> 234 final BigInteger months, 242 * specifying the <code>Duration</code> as isPositive, years, months, days, hours, minutes, seconds.</p> 249 * @param months of this <code>Duration</code> 262 * BigInteger months, 271 final int months, 280 // months may not be set 281 BigInteger realMonths = (months != DatatypeConstants.FIELD_UNDEFINED) ? BigInteger.valueOf((long) months) : null [all...] |