event time range functions