Rule 22. Sentence, judgment and commitment.
(a) Upon the entry of a plea or verdict of guilty or plea of no contest, the court shall set a time for imposing sentence which shall be not less than two nor more than 45 days after the verdict or plea, unless the court, with the concurrence of the defendant, otherwise orders. Pending sentence, the court may commit the defendant or may continue or alter bail or recognizance.
Before imposing sentence the court shall afford the defendant an opportunity to make a statement and to present any information in mitigation of punishment, or to show any legal cause why sentence should not be imposed. The prosecuting attorney shall also be given an opportunity to present any information material to the imposition of sentence.
(b) On the same grounds that a defendant may be tried in defendant's absence, defendant may likewise be sentenced in defendant's absence. If a defendant fails to appear for sentence, a warrant for defendant's arrest may be issued by the court.
(c)(1) Upon a verdict or plea of guilty or plea of no contest, the court shall impose sentence and shall enter a judgment of conviction which shall include the plea or the verdict, if any, and the sentence. Following imposition of sentence, the court shall advise the defendant of defendant's right to appeal and the time within which any appeal shall be filed.
(c)(2) If the defendant is convicted of a misdemeanor crime of domestic violence, as defined in Utah Code Section 77-36-1, the court shall advise the defendant orally or in writing that, as a result of the conviction, it is unlawful for the defendant to possess, receive or transport any firearm or ammunition. The failure to advise does not render the plea invalid or form the basis for withdrawal of the plea.
(d) When a jail or prison sentence is imposed, the court shall issue its commitment setting forth the sentence. The officer delivering the defendant to the jail or prison shall deliver a true copy of the commitment to the jail or prison and shall make the officer's return on the commitment and file it with the court.
(e) The court may correct an illegal sentence, or a sentence imposed in an illegal manner, at any time.
(f) Upon a verdict or plea of guilty and mentally ill, the court shall impose sentence in accordance with Title 77, Chapter 16a, Utah Code. If the court retains jurisdiction over a mentally ill offender committed to the Department of Human Services as provided by Utah Code Ann. § 77-16a-202(1)(b), the court shall so specify in the sentencing order.