wrap time ranges