It shall be competent for a court to defer sentence after conviction for a period and on such conditions as the court may determine.