結果 : check if time is within range python