(a) Notwithstanding any provision of this code to the contrary, a municipal judge may substitute in lieu of the imposition of a sentence of incarceration or imposition of a fine, substitute community service work for such incarceration or fine. Where community service work is ordered as a substitute on a sentence of incarceration an eight hour work day shall extinguish one day of any sentence of incarceration. The minimum wage established by the prevailing federal minimum wage in effect at the time of sentencing is imposed shall be used to compute the amount of community service work necessary to extinguish the fine. In the discretion of the court, the sentence credits may run concurrently or consecutively.
(b) Any community service ordered pursuant to the provisions of this section shall be performed for government entities or charitable or nonprofit entities and be supervised by the chief of police of the municipality or his or her designee.
(c) Persons sentenced under the provisions of this section remain under the jurisdiction of the municipal court. The court may withdraw the community service sentence at any time by order entered with or without notice and order a person previously sentenced to community service to serve the term of incarceration or to pay the fine available to the court upon the person's conviction: Provided, That any community service work performed before the community service sentence is withdrawn shall be credited against any term of incarceration or fine imposed.