determine nighttime hours