floor method
Returns a copy of this floored to the nearest unit
and value
.
OffsetTime(Offset(8), 12, 31, 59).floor(TimeUnit.minutes, 5); // 12:30+08:00
OffsetTime(Offset(8), 12, 34, 59).floor(TimeUnit.minutes, 5); // 12:30+08:00
Implementation
@useResult OffsetTime floor(TimeUnit unit, int value) => OffsetTime._(offset, _native.floor(unit, value));