public final class Quarters extends SingleUnitTimeSpan<CalendarUnit,Quarters>
Represents a time span in gregorian quarter years.
TimeSpan.Item<U>| Modifier and Type | Field and Description |
|---|---|
static Quarters |
ONE
Constant for exactly one gregorian quarter year.
|
static Quarters |
ZERO
Constant for zero gregorian quarter years.
|
| Modifier and Type | Method and Description |
|---|---|
static Quarters |
between(CalendarQuarter q1,
CalendarQuarter q2)
Determines the difference in quarters between given quarter years.
|
static <T extends TimePoint<? super CalendarUnit,T>> |
between(T t1,
T t2)
Determines the temporal distance between given dates/time-points in gregorian quarter years.
|
static Quarters |
of(int quarters)
Obtains a time span in given gregorian quarter years.
|
static Quarters |
parsePeriod(String period)
Parses the canonical format "PnQ" with possible preceding minus-char.
|
abs, addTo, compareTo, contains, equals, getAmount, getPartialAmount, getTotalLength, getUnit, hashCode, inverse, isEmpty, isNegative, isPositive, minus, minus, multipliedBy, plus, plus, subtractFrom, toStdDuration, toStringpublic static final Quarters ZERO
Constant for zero gregorian quarter years.
public static final Quarters ONE
Constant for exactly one gregorian quarter year.
public static Quarters of(int quarters)
Obtains a time span in given gregorian quarter years.
quarters - count of gregorian quarter years, maybe negativeCalendarUnit.QUARTERSpublic static <T extends TimePoint<? super CalendarUnit,T>> Quarters between(T t1, T t2)
Determines the temporal distance between given dates/time-points in gregorian quarter years.
T - generic type of time-pointst1 - first time-pointt2 - second time-pointPlainDate,
PlainTimestamppublic static Quarters between(CalendarQuarter q1, CalendarQuarter q2)
Determines the difference in quarters between given quarter years.
q1 - first quarter yearq2 - second quarter yearpublic static Quarters parsePeriod(String period) throws ParseException
Parses the canonical format "PnQ" with possible preceding minus-char.
period - the formatted string to be parsedParseException - if given argument cannot be parsedCopyright © 2014–2018. All rights reserved.