Searched refs:months (Results 26 - 46 of 46) sorted by relevance

12

/openjdk9/jdk/src/java.base/share/classes/java/text/
H A DSimpleDateFormat.java1182 String[] months;
1184 months = formatData.getMonths();
1185 current = months[value];
1187 months = formatData.getShortMonths();
1188 current = months[value];
1208 String[] months;
1210 months = formatData.getMonths();
1211 current = months[value];
1213 months = formatData.getShortMonths();
1214 current = months[valu
[all...]
/openjdk9/jdk/src/java.base/share/classes/java/time/chrono/
H A DThaiBuddhistDate.java377 ThaiBuddhistDate plusMonths(long months) { argument
378 return with(isoDate.plusMonths(months));
H A DMinguoDate.java377 MinguoDate plusMonths(long months) { argument
378 return with(isoDate.plusMonths(months));
H A DJapaneseDate.java615 JapaneseDate plusMonths(long months) { argument
616 return with(isoDate.plusMonths(months));
H A DHijrahDate.java607 int months = (int) (totalMonths % 12); // safe
608 return getChronology().period(Math.toIntExact(years), months, days);
H A DJapaneseChronology.java467 long months = Math.subtractExact(fieldValues.remove(MONTH_OF_YEAR), 1);
469 return date(y, 1, 1).plus(months, MONTHS).plus(days, DAYS);
/openjdk9/jdk/test/java/util/PluggableLocale/
H A Dfooprovider.jar ... java.text.DateFormatSymbols { String dialect String[] eras String[] months String[] shortMonths String[] weekdays String[] shortWeekdays String[] ampms final synthetic ...
/openjdk9/jdk/src/java.base/share/classes/java/time/
H A DZonedDateTime.java1635 * Returns a copy of this {@code ZonedDateTime} with the specified number of months added.
1638 * {@link LocalDateTime#plusMonths(long) adding months} to the local date-time.
1648 * @param months the months to add, may be negative
1649 * @return a {@code ZonedDateTime} based on this date-time with the months added, not null
1652 public ZonedDateTime plusMonths(long months) { argument
1653 return resolveLocal(dateTime.plusMonths(months));
1707 * Note that this is a different approach to that used by days, months and years,
1740 * Note that this is a different approach to that used by days, months and years.
1758 * Note that this is a different approach to that used by days, months an
1898 minusMonths(long months) argument
[all...]
H A DLocalDateTime.java1226 * Returns a copy of this {@code LocalDateTime} with the specified number of months added.
1228 * This method adds the specified amount to the months field in three steps:
1230 * <li>Add the input months to the month-of-year field</li>
1241 * @param months the months to add, may be negative
1242 * @return a {@code LocalDateTime} based on this date-time with the months added, not null
1245 public LocalDateTime plusMonths(long months) { argument
1246 LocalDate newDate = date.plusMonths(months);
1424 * Returns a copy of this {@code LocalDateTime} with the specified number of months subtracted.
1426 * This method subtracts the specified amount from the months fiel
1443 minusMonths(long months) argument
[all...]
/openjdk9/jdk/src/java.base/macosx/native/libjava/
H A DHostLocaleProviderAdapter_md.c204 (JNIEnv *env, jclass cls, jstring jlangtag, jobjectArray months) {
214 copyArrayElements(env, cfmonths, months, 0, 0, CFArrayGetCount(cfmonths));
222 return months;
203 Java_sun_util_locale_provider_HostLocaleProviderAdapterImpl_getMonths(JNIEnv *env, jclass cls, jstring jlangtag, jobjectArray months) argument
/openjdk9/jdk/test/java/time/tck/java/time/
H A DTCKYearMonth.java709 long months = 20L + Integer.MAX_VALUE;
710 assertEquals(test.plusMonths(months), YearMonth.of((int) (-40L + months / 12), 6 + (int) (months % 12)));
924 long months = 20L + Integer.MAX_VALUE;
925 assertEquals(test.minusMonths(months), YearMonth.of((int) (40L - months / 12), 6 - (int) (months % 12)));
H A DTCKLocalDate.java1188 long months = 20L + Integer.MAX_VALUE;
1189 LocalDate test = LocalDate.of(-40, 6, 1).plusMonths(months);
1190 assertEquals(test, LocalDate.of((int) (-40L + months / 12), 6 + (int) (months % 12), 1));
1567 long months = 20L + Integer.MAX_VALUE;
1568 LocalDate test = LocalDate.of(40, 6, 1).minusMonths(months);
1569 assertEquals(test, LocalDate.of((int) (40L - months / 12), 6 - (int) (months % 12), 1));
2526 for (int months : new int[] { 0, 1, 2, 3, 5, 7, 12, 13 }) {
2529 if (months >
[all...]
/openjdk9/jdk/src/java.scripting/share/classes/com/sun/tools/script/shell/
H A Dinit.js556 var months = [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", variable
574 sb.append(months[c.get(java.util.Calendar.MONTH)]
/openjdk9/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/objects/
H A DNativeDate.java94 private static String[] months = { field in class:NativeDate
932 .append(months[monthFromTime(t)])
1003 .append(months[monthFromTime(t)])
/openjdk9/jdk/src/java.base/windows/native/libjava/
H A DHostLocaleProviderAdapter_md.c334 (JNIEnv *env, jclass cls, jstring jlangtag, jobjectArray months) {
335 replaceCalendarArrayElems(env, jlangtag, -1, months, monthsType,
337 return months;
333 Java_sun_util_locale_provider_HostLocaleProviderAdapterImpl_getMonths(JNIEnv *env, jclass cls, jstring jlangtag, jobjectArray months) argument
/openjdk9/jdk/test/java/time/test/java/time/chrono/
H A DTestUmmAlQuraChronology.java311 // Data provider to get the difference between two dates in terms of days, months and years
323 // Test to verify the difference between two given dates in terms of days, months and years
325 public void test_diffBetweenDates(ChronoLocalDate from, ChronoLocalDate to, long days, long months, long years) { argument
327 assertEquals(from.until(to, ChronoUnit.MONTHS), months);
/openjdk9/jdk/test/java/time/tck/java/time/chrono/
H A DTCKMinguoChronology.java508 long months = mdate1.until(mdate2, ChronoUnit.MONTHS);
509 assertEquals(months, 13);
H A DTCKThaiBuddhistChronology.java469 long months = mdate1.until(mdate2, ChronoUnit.MONTHS);
470 assertEquals(months, 13);
H A DTCKJapaneseChronology.java627 long months = mdate1.until(mdate2, ChronoUnit.MONTHS);
628 assertEquals(months, 13);
/openjdk9/jdk/src/java.base/macosx/classes/sun/util/locale/provider/
H A DHostLocaleProviderAdapterImpl.java882 private static native String[] getMonths(String langTag, String[] months); argument
/openjdk9/jdk/src/java.base/windows/classes/sun/util/locale/provider/
H A DHostLocaleProviderAdapterImpl.java843 private static native String[] getMonths(String langTag, String[] months); argument

Completed in 308 milliseconds

12