time selector with a few tricks