Home | History | Annotate | Download | only in datatype

Lines Matching refs: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
573 * "1 day" - "-3 days" = "4 days"
576 * "15 hours" - "-3 days" = "3 days and 15 hours"
598 * <p>If a borrow occurs in the days field (in other words, if
600 * days), then the computation fails by throwing an
667 * to days, or year to months, this will cause an
705 * <p>Converts the years and months fields into the days field
708 * <p>For example, duration of one month normalizes to 31 days
714 * <li>the years, months and days fields will be added to the {@link Calendar} object
716 * <li>the difference between the two Calendars in computed in milliseconds and converted to days,
718 * <li>the computed days, along with the hours, minutes and seconds
730 * @return <code>Duration</code> of years and months of this <code>Duration</code> as days.
832 * "incomparable" to each other, like one month and 30 days.
906 BigInteger days = (BigInteger) getField(DatatypeConstants.DAYS);
907 if (days != null) {
908 buf.append(days).append('D');