moved is_starttime / is_after_endtime to times.py