getStepTimeAfterInclusive method

DateTime getStepTimeAfterInclusive(
  1. DateTime time,
  2. int tickIncrement
)

Implementation

DateTime getStepTimeAfterInclusive(DateTime time, int tickIncrement) {
  final boundedStart = getStepTimeBeforeInclusive(time, tickIncrement);
  if (boundedStart.isAtSameMomentAs(time)) {
    return boundedStart;
  }
  return getNextStepTime(boundedStart, tickIncrement);
}