[pergola] dirty but working implementation of interv() timepoints to
intervals