After imposing sentence or making an order deemed to be a final judgment in a misdemeanor case on conviction after trial or following a revocation of probation, the court must orally or in writing advise a defendant not represented by counsel of the right to appeal, the time for filing a notice of appeal, and the right of an indigent defendant to have counsel appointed on appeal. This rule does not apply to infractions or when a revocation of probation is ordered after the defendant’s admission of a violation of probation.
Cal. R. Ct. 4.306