ChronoContainer
Class storing time units against values, to be applied to a time later on.
This is intended as a way to apply a mixed-unit duration to a time when you don't actually know what time you'll be applying it to. This is more accurate than straight up returning Java java.time.Duration objects, which can only store a count of seconds.
Functions
Create a new ChronoContainer using the values from this one.
Get the stored value for a given supported ChronoUnit, additionally returning 0 if no value is found.
Check whether a given ChronoUnit will be converted in plus, minus and set.
Check whether this container contains a positive set of values.
Check whether a given ChronoUnit is fully supported.
Given a value and ChronoUnit, subtract it from this container's collection of values.
Given a LocalDateTime (defaulting to now()), normalize the stored values by applying them to the datetime and calculating their real-world difference. This will replace all stored values with newly-normalized values.
Given a value and ChronoUnit, add it to this container's collection of values.
Given a value and ChronoUnit, replace any stored value for that unit with the given value.
Given a Duration, this function will return a String (or null if it represents less than 1 second).