Format time ranges on a single line.