- toMilliseconds
Shortcut for creating a timespan and then retrieving the value in milliseconds.
- <init>
Constructor
- add
Adds another timespan to this timespan and return a brand new one. Note that the
unit is preserved i
- create
Creates a timespan from a list of other timespans.
- getAsString
Returns a string representing this timespan expressed with the units provided.
- getAsTimespans
Decomposes this timespan as a map for each unit provided. Example: if this
timespan represents 63s a
- getCanonicalTimespans
There are many ways to represent the same timespan: 3h, 180m... this call return
the unique way to e
- getDuration
- getDurationInMilliseconds
- getTimeUnit
- isDigit
- parseTimespan
Parses the provided string as a timespan. It should follow the pattern returned
by #getCanonicalStri