Fix doc comment for determine_time_range function to include reference to time wrapping