Generate time intervals from event array