while awaiting trial — is meritorious. Section 15-18-5, Ala.Code 1975, provides: “Upon conviction and imprisonment for any felony or misdemeanor, the sentencing court shall order that the convicted person be credited with all of his actual time spent incarcerated pending trial for such offense. The actual time spent incarcerated pending trial shall be certified by the circuit clerk on forms to be prescribed by the Board of Corrections.” The facts in this case appear to present a case of first impression in Alabama: whether a minor, transferred to stand trial as an adult, is entitled to credit on prison time for the time spent in the youth detention facility. Adcock was a minor when the crime was committed and most of his pretrial incarceration was in a youth detention facili 4 (1975) (<HOLDING>). In order to determine whether § 15-18-5
holding that a defendant who does not receive concurrent sentences on multiple charges  is not entitled to have his jail time credit pyramided by being given credit on each sentence for the full time he spends in jail awaiting disposition he is only entitled to jail credit on the first of the consecutive sentences quoting daniels v state 491 so2d 543 545 fla1986 holding that a defendant must be granted credit for time served in any institution serving as the functional equivalent of a county jail holding defendant who received treatment in a state hospital was not entitled to jail credit for that time holding that jail records can properly be considered in determining jail credit issues raised pursuant to rule 3800a holding that a youth detention facility was a jail for purposes of statute requiring credit for time served in jail while awaiting trial