Time Range Python Function Questions In Js