(1) A sentence of imprisonment shall not begin to run before the date it is imposed, but the court imposing a sentence shall allow a defendant credit for all of the time she or he spent in the county jail before sentence. The credit must be for a specified period of time and shall be provided for in the sentence.
(2) In addition to other credits, a person sentenced to imprisonment in custody of the Department of Corrections shall receive credit on her or his sentence for all time spent between sentencing and being placed in custody of the department. When delivering a prisoner to the department, the custodian of the local jail shall certify to it in writing:
(a) The date the sentence was imposed and the date the prisoner was delivered to the department.
(b) The dates of any periods after sentence the prisoner was at liberty on bond.
(c) The dates and reasons for any other times the prisoner was at liberty after sentence.
(d) The offender-based transaction system number or numbers from the uniform arrest report or reports established pursuant to s. 943.05(2).
The certificate shall be prima facie evidence of the facts certified.