Java org.joda.time Years fields, constructors, methods, implement or subclass

Example usage for Java org.joda.time Years fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.joda.time Years.

The text is from its open source code.

Field

YearsZERO
Constant representing zero years.
YearsONE
Constant representing one year.
YearsTHREE
Constant representing three years.

Constructor

Years(int years)
Creates a new instance representing a number of years.

Method

intgetYears()
Gets the number of years that this period represents.
YearsparseYears(String periodStr)
Creates a new Years by parsing a string in the ISO8601 format 'PnY'.
YearsyearsBetween(ReadableInstant start, ReadableInstant end)
Creates a Years representing the number of whole years between the two specified datetimes.
YearsyearsBetween(ReadablePartial start, ReadablePartial end)
Creates a Years representing the number of whole years between the two specified partial datetimes.
YearsyearsIn(ReadableInterval interval)
Creates a Years representing the number of whole years in the specified interval.