Example usage for Java org.joda.time Years fields, constructors, methods, implement or subclass
The text is from its open source code.
Years | ZERO Constant representing zero years. |
Years | ONE Constant representing one year. |
Years | THREE Constant representing three years. |
Years(int years) Creates a new instance representing a number of years. |
int | getYears() Gets the number of years that this period represents. |
Years | parseYears(String periodStr) Creates a new Years by parsing a string in the ISO8601 format 'PnY'. |
Years | yearsBetween(ReadableInstant start, ReadableInstant end) Creates a Years representing the number of whole years between the two specified datetimes. |
Years | yearsBetween(ReadablePartial start, ReadablePartial end) Creates a Years representing the number of whole years between the two specified partial datetimes. |
Years | yearsIn(ReadableInterval interval) Creates a Years representing the number of whole years in the specified interval. |