- of
Creates a new duration which only knows one unit.
Is the given amount is negative then the duratio
- getTotalLength
- in
Constructs a metric for any kind of standard units in normalized form.
Important: If the smallest
- inYearsMonthsDays
Constructs a metric in years, months and days.
Finally the resulting duration will be normalized s
- parsePeriod
- plus
Creates a duration as union of this instance and given timespan where partial
amounts of equal units
- with
Normalizes this duration by given normalizer.
- <init>
- abs
Gets the absolute always non-negative copy of this duration.
Example:
System.out.println(Durat
- addParsedItem
- cast
- contains
Queries if this duration contains given time unit.
Any time unit is also part of this duration if