Convert a JodaJs ChronoUnit
into ScheduleJS ChronoUnit
JodaJs ChronoUnit
ScheduleJS ChronoUnit
Convert a ScheduleJS ChronoUnit
into JodaJs ChronoUnit
ScheduleJS ChronoUnit
JodaJs ChronoUnit
Truncates the given time for the given chrono unit. The method ZonedDateTime.truncatedTo(java.time.temporal.TemporalUnit)
is not sufficient as it only works for small units (hours, minutes, seconds). It does not work for any unit that has
a variable duration (a month can be 28, 30, or 31 days long). We also want to be able to support a "step rate"
(e.g. "truncate to minutes, to 5 minutes, to 15 minutes").
the time to truncate
the chrono unit on which the truncation will be based
the step rate (1, 5, 15, ....)
the truncated time
Truncates the given time for the given chrono unit. The method ZonedDateTime.truncatedTo(java.time.temporal.TemporalUnit)
is not sufficient as it only works for small units (hours, minutes, seconds). It does not work for any unit that has
a variable duration (a month can be 28, 30, or 31 days long). We also want to be able to support a "step rate"
(e.g. "truncate to minutes, to 5 minutes, to 15 minutes").
the time to truncate
the chrono unit on which the truncation will be based
the step rate (1, 5, 15, ....)
the first day of the week, needed for truncating weeks
the truncated time
A utility class providing methods used in combination with
ChronoUnit
.1.0