Function isTimeControl