floor method
Returns a copy of this floored to the nearest unit
and value
.
Contract
Throws a RangeError if value <= 0
.
Example
LocalTime(12, 31, 59).round(5, TimeUnit.minutes); // 12:30
LocalTime(12, 34, 59).round(5, TimeUnit.minutes); // 12:30
Implementation
@Possible({RangeError})
@useResult LocalTime floor(TimeUnit unit, int value) => LocalTime._(_native.floor(unit, value));