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