shiftBy

fun shiftBy(shiftStart: Duration, shiftEnd: Duration = shiftStart): Interval

Shifts the start and end points equally forward or backward in time.

Parameters

shiftStart

Duration to shift the start by. Negative means backward in time.

shiftEnd

Duration to shift the end by. Defaults to shiftStart