Home | History | Annotate | Download | only in datatype

Lines Matching defs:years

34  * which consists of six fields (years, months, days, hours,
158 boolean yearSet = isSet(DatatypeConstants.YEARS);
218 * <p>Get the years value of this <code>Duration</code> as an <code>int</code> or <code>0</code> if not present.</p>
221 * {@link #getField(DatatypeConstants.Field field) getField(DatatypeConstants.YEARS)}.</p>
224 * with years that go beyond the range of an <code>int</code>.
225 * Use {@link #getField(DatatypeConstants.Field field) getField(DatatypeConstants.YEARS)} to avoid possible loss of precision.</p>
227 * @return If the years field is present, return its value as an <code>int</code>, else return <code>0</code>.
230 return getFieldValueAsInt(DatatypeConstants.YEARS);
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,
494 * order of YEARS, MONTHS, DAYS, HOURS, MINUTES, SECONDS, and MILLISECONDS
544 * determine the duration of months and years.
673 * the {@link #normalizeWith(Calendar)} method to remove the years
705 * <p>Converts the years and months fields into the days field
714 * <li>the years, months and days fields will be added to the {@link Calendar} object
726 * a very large value in the years or months fields.</p>
730 * @return <code>Duration</code> of years and months of this <code>Duration</code> as days.
777 * "P2Y" (two years) > "P23M" (23 months).</p>
896 BigInteger years = (BigInteger) getField(DatatypeConstants.YEARS);
897 if (years != null) {
898 buf.append(years).append('Y');