Open ariebovenberg opened 4 months ago
Yeah, the Temporal API does indeed provide rounding APIs for datetime types. But what's even more useful, IMO, is rounding and re-balancing for durations. There are a lot of options availabe on, for example, ZonedDateTime.until
that permit rounding the span returned or even choosing the "biggest" unit.
When it comes to re-balancing of durations, this issue is relevant as well: #108.
It'd make sense to be able to round datetimes in different ways:
The temporal API probably gives a big hint for doing this.