Lines Matching defs:days
34 * which consists of six fields (years, months, days, hours,
56 * <p>For example, 30 days cannot be meaningfully compared to one month.
68 * subtract 15 days from 1 month. See the javadoc of those methods
160 boolean daySet = isSet(DatatypeConstants.DAYS);
247 * Obtains the value of the DAYS field as an integer value,
251 * that this method works on the DAYS field.
253 * @return Days of this <code>Duration</code>.
256 return getFieldValueAsInt(DatatypeConstants.DAYS);
383 * In case of YEARS, MONTHS, DAYS, HOURS, and MINUTES, the returned
388 * one of the six Field constants (YEARS,MONTHS,DAYS,HOURS,
394 * For YEARS, MONTHS, DAYS, HOURS, and MINUTES, this method
406 * one of the six Field constants (YEARS,MONTHS,DAYS,HOURS,
427 * one of the six Field constants (YEARS,MONTHS,DAYS,HOURS,
442 * "1 day" + "-3 days" = "-2 days"
445 * "15 hours" + "-3 days" = "-(2 days,9 hours)"
494 * order of YEARS, MONTHS, DAYS, HOURS, MINUTES, SECONDS, and MILLISECONDS
569 * "1 day" - "-3 days" = "4 days"
572 * "15 hours" - "-3 days" = "3 days and 15 hours"
594 * <p>If a borrow occurs in the days field (in other words, if
596 * days), then the computation fails by throwing an
663 * to days, or year to months, this will cause an
701 * <p>Converts the years and months fields into the days field
704 * <p>For example, duration of one month normalizes to 31 days
710 * <li>the years, months and days fields will be added to the {@link Calendar} object
712 * <li>the difference between the two Calendars in computed in milliseconds and converted to days,
714 * <li>the computed days, along with the hours, minutes and seconds
726 * @return <code>Duration</code> of years and months of this <code>Duration</code> as days.
828 * "incomparable" to each other, like one month and 30 days.
902 BigInteger days = (BigInteger) getField(DatatypeConstants.DAYS);
903 if (days != null) {
904 buf.append(days).append('D');