Uses of Class
org.joda.time.Years
-
Packages that use Years Package Description org.joda.time Provides support for dates, times, time zones, durations, intervals, and partials. -
-
Uses of Years in org.joda.time
Fields in org.joda.time declared as Years Modifier and Type Field Description static Years
Years. MAX_VALUE
Constant representing the maximum number of years that can be stored in this object.static Years
Years. MIN_VALUE
Constant representing the minimum number of years that can be stored in this object.static Years
Years. ONE
Constant representing one year.static Years
Years. THREE
Constant representing three years.static Years
Years. TWO
Constant representing two years.static Years
Years. ZERO
Constant representing zero years.Methods in org.joda.time that return Years Modifier and Type Method Description Years
Years. dividedBy(int divisor)
Returns a new instance with the years divided by the specified divisor.Years
Years. minus(int years)
Returns a new instance with the specified number of years taken away.Years
Years. minus(Years years)
Returns a new instance with the specified number of years taken away.Years
Years. multipliedBy(int scalar)
Returns a new instance with the years multiplied by the specified scalar.Years
Years. negated()
Returns a new instance with the years value negated.static Years
Years. parseYears(String periodStr)
Creates a newYears
by parsing a string in the ISO8601 format 'PnY'.Years
Years. plus(int years)
Returns a new instance with the specified number of years added.Years
Years. plus(Years years)
Returns a new instance with the specified number of years added.static Years
Years. years(int years)
Obtains an instance ofYears
that may be cached.static Years
Years. yearsBetween(ReadableInstant start, ReadableInstant end)
Creates aYears
representing the number of whole years between the two specified datetimes.static Years
Years. yearsBetween(ReadablePartial start, ReadablePartial end)
Creates aYears
representing the number of whole years between the two specified partial datetimes.static Years
Years. yearsIn(ReadableInterval interval)
Creates aYears
representing the number of whole years in the specified interval.Methods in org.joda.time with parameters of type Years Modifier and Type Method Description boolean
Years. isGreaterThan(Years other)
Is this years instance greater than the specified number of years.boolean
Years. isLessThan(Years other)
Is this years instance less than the specified number of years.Years
Years. minus(Years years)
Returns a new instance with the specified number of years taken away.Years
Years. plus(Years years)
Returns a new instance with the specified number of years added.
-