ceil method

  1. @useResult
OffsetTime ceil(
  1. TimeUnit unit,
  2. int value
)

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));