/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
MockFieldNoValue.java | 63 import static java.time.temporal.ChronoUnit.WEEKS; 81 return WEEKS;
|
TestChronoUnit.java | 68 import static java.time.temporal.ChronoUnit.WEEKS; 249 assertEquals(WEEKS.between(start, end), expected); 254 assertEquals(WEEKS.between(end, start), -expected);
|
TestIsoWeekFields.java | 66 assertEquals(weekField.getBaseUnit(), ChronoUnit.WEEKS);
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
RelativeDateTimeFormatterTest.java | 48 {0.0, Direction.NEXT, RelativeUnit.WEEKS, "in 0 weeks"}, 49 {0.5, Direction.NEXT, RelativeUnit.WEEKS, "in 0.5 weeks"}, 50 {1.0, Direction.NEXT, RelativeUnit.WEEKS, "in 1 week"}, 51 {2.0, Direction.NEXT, RelativeUnit.WEEKS, "in 2 weeks"}, 77 {0.0, Direction.LAST, RelativeUnit.WEEKS, "0 weeks ago"}, 78 {0.5, Direction.LAST, RelativeUnit.WEEKS, "0.5 weeks ago"} [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
RelativeDateTimeFormatterTest.java | 47 {0.0, Direction.NEXT, RelativeUnit.WEEKS, "in 0 weeks"}, 48 {0.5, Direction.NEXT, RelativeUnit.WEEKS, "in 0.5 weeks"}, 49 {1.0, Direction.NEXT, RelativeUnit.WEEKS, "in 1 week"}, 50 {2.0, Direction.NEXT, RelativeUnit.WEEKS, "in 2 weeks"}, 76 {0.0, Direction.LAST, RelativeUnit.WEEKS, "0 weeks ago"}, 77 {0.5, Direction.LAST, RelativeUnit.WEEKS, "0.5 weeks ago"} [all...] |
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/ |
TCKChronoUnitSerialization.java | 73 import static java.time.temporal.ChronoUnit.WEEKS; 103 {WEEKS},
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
ChronoField.java | 81 import static java.time.temporal.ChronoUnit.WEEKS; 345 DAY_OF_WEEK("DayOfWeek", DAYS, WEEKS, ValueRange.of(1, 7), "weekday"), 350 * where the weeks are aligned to the start of the month. 355 * Within each of these aligned-weeks, the days are numbered from 1 to 7 and returned 363 ALIGNED_DAY_OF_WEEK_IN_MONTH("AlignedDayOfWeekInMonth", DAYS, WEEKS, ValueRange.of(1, 7)), 368 * where the weeks are aligned to the start of the year. 373 * Within each of these aligned-weeks, the days are numbered from 1 to 7 and returned 381 ALIGNED_DAY_OF_WEEK_IN_YEAR("AlignedDayOfWeekInYear", DAYS, WEEKS, ValueRange.of(1, 7)), 426 * This represents concept of the count of weeks within the period of a month 427 * where the weeks are aligned to the start of the month [all...] |
WeekFields.java | 76 import static java.time.temporal.ChronoUnit.WEEKS; 121 * Together these two values allow a year or month to be divided into weeks. 125 * The calculation ensures that weeks never overlap a month boundary. 146 * The calculation ensures that weeks never overlap a year boundary. 157 * The first and last weeks of a year may contain days from the 182 // however, setting the week value should be lenient (use plus/minus weeks) 197 * The ISO-8601 standard defines a calendar system based on weeks. 220 * The unit is equal to either 52 or 53 weeks. 435 * This represents the concept of the count of weeks within the month where weeks 962 long weeks = Math.subtractExact(wom, localizedWeekOfMonth(date)); local 969 int weeks = (int) (womInt - localizedWeekOfMonth(date)); \/\/ safe from overflow local 987 long weeks = Math.subtractExact(woy, localizedWeekOfYear(date)); local 992 int weeks = (int) (womInt - localizedWeekOfYear(date)); \/\/ safe from overflow local 1013 long weeks = Math.subtractExact(wowby, 1); local [all...] |
ChronoUnit.java | 132 WEEKS("Weeks", Duration.ofSeconds(7 * 86400L)),
|
IsoFields.java | 72 import static java.time.temporal.ChronoUnit.WEEKS; 134 * There are 52 weeks in most week-based years, however on occasion there are 53 weeks. 215 * week-based-year has 53 weeks. 228 * 52 weeks, then the resulting date is in week 1 of the following week-based-year. 233 * weeks to reduce the day-of-week to the range 1 to 7. If the week-of-week-based-year 234 * value is outside the range 1 to 52, then any excess weeks are added or subtracted 258 * The unit is equal to either 52 or 53 weeks. 263 * for the week-based-year field. If the resulting week-based-year only has 52 weeks, 431 return WEEKS; [all...] |
/libcore/luni/src/test/java/libcore/java/time/ |
InstantTest.java | 44 assertEquals(false, Instant.EPOCH.isSupported(ChronoUnit.WEEKS));
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
TCKChronoUnit.java | 73 import static java.time.temporal.ChronoUnit.WEEKS; 108 {WEEKS, true, false, true}, 139 {WEEKS, LocalDate.of(2000, 1, 10), true, 1, LocalDate.of(2000, 1, 17)}, 154 {WEEKS, LocalTime.of(1, 2, 3, 400), false, 1, null},
|
TCKChronoField.java | 96 import static java.time.temporal.ChronoUnit.WEEKS; 128 {DAY_OF_WEEK, DAYS, WEEKS},
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
TestChronoLocalDate.java | 92 dates.add(date.minus(1, ChronoUnit.WEEKS)); 96 dates.add(date.plus(1, ChronoUnit.WEEKS)); 116 dates.add(date.minus(1, ChronoUnit.WEEKS)); 120 dates.add(date.plus(1, ChronoUnit.WEEKS));
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
AbstractChronology.java | 79 import static java.time.temporal.ChronoUnit.WEEKS; 407 * the difference in months, then the difference in weeks, then in days. 411 * the amount in weeks and days to reach their values. If the mode is strict, 417 * years, months and weeks in {@code ALIGNED_DAY_OF_WEEK_IN_MONTH}. 419 * the years, months and weeks have been handled. 425 * the difference in weeks, then in days. 429 * the amount in weeks and days to reach their values. If the mode is strict, 434 * The approach is the same as described above for years and weeks in 436 * next or same matching day-of-week once the years and weeks have been handled. 585 long weeks = Math.subtractExact(fieldValues.remove(ALIGNED_WEEK_OF_MONTH), 1) local 603 long weeks = Math.subtractExact(fieldValues.remove(ALIGNED_WEEK_OF_MONTH), 1); local 620 long weeks = Math.subtractExact(fieldValues.remove(ALIGNED_WEEK_OF_YEAR), 1); local 636 long weeks = Math.subtractExact(fieldValues.remove(ALIGNED_WEEK_OF_YEAR), 1); local [all...] |
ChronoLocalDateImpl.java | 203 case WEEKS: return plusDays(Math.multiplyExact(amountToAdd, 7)); 262 * Returns a copy of this date with the specified number of weeks added. 264 * This adds the specified period in weeks to the date. 265 * In some cases, adding weeks can cause the resulting date to become invalid. 272 * @param weeksToAdd the weeks to add, may be negative 273 * @return a date based on this one with the weeks added, not null 337 * Returns a copy of this date with the specified number of weeks subtracted. 339 * This subtracts the specified period in weeks to the date. 340 * In some cases, subtracting weeks can cause the resulting date to become invalid. 347 * @param weeksToSubtract the weeks to subtract, may be negativ [all...] |
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
TCKChronoLocalDate.java | 266 dates.add(date.minus(1, ChronoUnit.WEEKS)); 270 dates.add(date.plus(1, ChronoUnit.WEEKS));
|
TCKChronoLocalDateTime.java | 269 dates.add(date.minus(1, ChronoUnit.WEEKS)); 281 dates.add(date.plus(1, ChronoUnit.WEEKS));
|
TCKChronoZonedDateTime.java | 272 dates.add(date.minus(1, ChronoUnit.WEEKS)); 284 dates.add(date.plus(1, ChronoUnit.WEEKS));
|
CopticDate.java | 264 case WEEKS: return plusDays(Math.multiplyExact(amountToAdd, 7));
|
/libcore/luni/src/main/java/libcore/icu/ |
RelativeDateTimeFormatter.java | 197 unit = android.icu.text.RelativeDateTimeFormatter.RelativeUnit.WEEKS;
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
RelativeDateTimeFormatter.java | 126 * Weeks 128 WEEKS, 285 * "in 5 weeks". 482 * "5 weeks ago", "in 5 weeks". 506 case WEEK: relunit = RelativeUnit.WEEKS; break; 852 WEEK(RelativeUnit.WEEKS, AbsoluteUnit.WEEK), [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
RelativeDateTimeFormatter.java | 136 * Weeks 139 WEEKS, 322 * "in 5 weeks". 538 * "5 weeks ago", "in 5 weeks". 563 case WEEK: relunit = RelativeUnit.WEEKS; break; [all...] |
/libcore/ojluni/src/test/java/time/tck/java/time/ |
TCKLocalDate.java | 81 import static java.time.temporal.ChronoUnit.WEEKS; 656 assertEquals(TEST_2007_07_15.isSupported(ChronoUnit.WEEKS), true); [all...] |
/external/openssh/ |
misc.c | 282 #define WEEKS (DAYS * 7) 295 * w|W weeks 347 secs *= WEEKS;
|