| Modifier and Type | Field and Description |
|---|---|
static Years<CalendarUnit> |
Years.ONE
Constant for exactly one gregorian year.
|
static Years<CalendarUnit> |
Years.ZERO
Constant for zero gregorian years.
|
| Modifier and Type | Method and Description |
|---|---|
static Years<CalendarUnit> |
Years.between(CalendarMonth m1,
CalendarMonth m2)
Determines the difference in years between given calendar months.
|
static Years<CalendarUnit> |
Years.between(CalendarQuarter q1,
CalendarQuarter q2)
Determines the difference in years between given quarter years.
|
static Years<Weekcycle> |
Years.between(CalendarWeek w1,
CalendarWeek w2)
Determines the difference in years between given calendar weeks.
|
static Years<CalendarUnit> |
Years.between(CalendarYear y1,
CalendarYear y2)
Determines the difference in years between given calendar years.
|
static <T extends TimePoint<? super CalendarUnit,T>> |
Years.between(T t1,
T t2)
Determines the temporal distance between given dates/time-points in gregorian years.
|
static Years<CalendarUnit> |
Years.ofGregorian(int years)
Obtains a time span in given gregorian years.
|
static Years<Weekcycle> |
Years.ofWeekBased(int years)
Obtains a time span in given week-based years.
|
static Years<CalendarUnit> |
Years.parseGregorian(String period)
Parses the canonical ISO-8601-format "PnY" with possible preceding minus-char.
|
static Years<Weekcycle> |
Years.parseWeekBased(String period)
Like
parseGregorian(period) but interpretes years as week-based. |
| Modifier and Type | Method and Description |
|---|---|
CalendarYear |
CalendarYear.minus(Years<CalendarUnit> years)
Subtracts given years from this year.
|
CalendarQuarter |
CalendarQuarter.minus(Years<CalendarUnit> years)
Subtracts given years from this quarter year.
|
CalendarMonth |
CalendarMonth.minus(Years<CalendarUnit> years)
Subtracts given years from this calendar month.
|
CalendarWeek |
CalendarWeek.minus(Years<Weekcycle> years)
Subtracts given years from this calendar week.
|
CalendarYear |
CalendarYear.plus(Years<CalendarUnit> years)
Adds given years to this year.
|
CalendarQuarter |
CalendarQuarter.plus(Years<CalendarUnit> years)
Adds given years to this quarter year.
|
CalendarMonth |
CalendarMonth.plus(Years<CalendarUnit> years)
Adds given years to this calendar month.
|
CalendarWeek |
CalendarWeek.plus(Years<Weekcycle> years)
Adds given years to this calendar week.
|
Copyright © 2014–2018. All rights reserved.