kevin.cianfarini
01/24/2023, 6:35 PMDateTimePeriod
? I want to figure out how many DateTimeUnit
a DateTimePeriod
is composed of, for example. I would hope/think something like this would be available but I’m not sure if it’s explicitly omitted.
val period = someInstant.periodUntil(otherInstant)
val unit = DateTimeUnit.MINUTE * 30
return period.div(unit) // Not available.
kevin.cianfarini
01/24/2023, 6:54 PM