§706-671 Credit for time of detention prior to sentence; credit for imprisonment under earlier sentence for same crime. (1) When a defendant who is sentenced to imprisonment has previously been detained in any State or local correctional or other institution following the defendant's arrest for the crime for which sentence is imposed, such period of detention following the defendant's arrest shall be deducted from the minimum and maximum terms of such sentence. The officer having custody of the defendant shall furnish a certificate to the court at the time of sentence, showing the length of such detention of the defendant prior to sentence in any State or local correctional or other institution, and the certificate shall be annexed to the official records of the defendant's commitment.
(2) When a judgment of conviction or a sentence is vacated and a new sentence is thereafter imposed upon the defendant for the same crime, the period of detention and imprisonment theretofore served shall be deducted from the minimum and maximum terms of the new sentence. The officer having custody of the defendant shall furnish a certificate to the court at the time of sentence, showing the period of imprisonment served under the original sentence, and the certificate shall be annexed to the official records of the defendant's new commitment. [L 1972, c 9, pt of §1; gen ch 1993]