Opinion
Thе People appeal in case A-333483 from an order granting defendant 760 days credit against his prison sentence, contending that the order was in excess of the court’s jurisdiction. The People have also filed a petition for writ of mandate on the identical issue. We have consolidated the appeal and the petition for extraordinary relief.
Procedural Facts:
After being taken in custody on February 4, 1977, on suspicion of murder, defendant was formally charged with murder on February 24, 1977, in сase A-333483, the matter at bench.
On April 12, 1977, when the instant case was pending, defendant was placed on probation in case A-326961 for assault with a deadly weapon committed in 1976. As a condition of probation, defendant was ordered to serve one year in the county jail.
On December 19, 1977, in case A-520695, defendant was sentenced to state prison for assault with a deadly weapon upon a police officer *312 and for possession of a concealable firearm by an ex-felon. Both offenses were committed in 1976.
On February 6, 1979, a jury found defendant guilty of voluntary manslaughter in the prеsent case (A-333483), and on March 6, 1979, the trial court imposed a prison sentence, to run consecutive to the sentеnce appellant was then serving in case A-520695. The court gave appellant credit for 760 days, stating: “He has beеn held in custody for a period of 760 days for this case, as a result of this incident. And he is entitled to credit therefor.”
Discussion:
1. The order is appealable.
In criminal cases, unless permitted by statute, the People have no right of appeal.
(People
v.
Drake
(1977)
2. Defendant is not entitled to 760 days presentence credit.
The issue is whether under Penal Code section 2900.5 dеfendant is entitled to credit against his sentence for voluntary manslaughter (case A-333483) for the 760 days he spent in jail while awaiting trial and disposition of that charge when he would necessarily have been incarcerated for the majority оf that period in two unrelated cases (A-326961 and A-520695). We conclude that under Penal Code section 2900.5 defendant is not entitled to the credit he seeks.
*313
Penal Code section 2900.5 provides for credit to be given for time spent in custody prior to commencement of sentence. It reads in relevant part: “(b) For the purposes of this section, credit shall bе given only where the custody to be credited is attributable to proceedings related to the same conduct fоr which the defendant has been convicted.” Section 2900.5 was enacted “to eliminate the unequal treatment suffered by indigent defendants who, because of their inability to post bail, served a longer overall confinement than their wealthier counterparts.”
(In re Rojas
(1979)
Defendant contends that because he was awaiting trial оn multiple murder charges, which were nonbailable capital offenses, he would have remained in custody irrespеctive of his incarceration for prior unrelated offenses in the other two cases; and, therefore, unlike the situation in
Rojas,
the in-custody period on the murder charges was also attributable to those charges, entitling him to credit therefor. Section 2900.5, subdivision (b) allows presentence credit “only where” custody is attributable to the “same conduct for whiсh the defendant has been convicted.” In interpreting that language the court in
Rojas
stated: “The sensible inference is that a defendant is not to be given credit for time spent in custody if during the same period he is already serving a term of incarceration.”
(Id.
at pp. 155-156.) Here, at the time defendant was in custody on the murder charges, he was simultaneously serving a period of incarceration for prior unrelated offenses. Based on the language of Penal Code sectiоn 2900.5, subdivision (b), as interpreted by the
Rojas
court, we conclude that defendant is entitled to presentence credit only for thаt period of custody not attributable to his incarceration for previous unrelated offenses, i.e., from February 4, 1977 (day of murder arrest in case A-333483) to April 12, 1977 (date on which incarceration in case A-326961 commenced). The trial court’s аllowance of presentence credit for all the days defendant spent in custody since his arrest on February 4, 1977, until his sеntencing on March 6, 1979, was error and beyond the court’s jurisdiction.
(People
v.
Macias
(1979)
Judgment is reversed and remanded to the trial court with directions to enter an amended judgment in accordance with this decision.
The same issue as on appeal was presented by the People in their petition for writ of mandate. Having decided the issue on appeal, we dismiss the petition for writ of mandate as moot.
Fleming, Acting P. J., and Compton, J., concurred.
A petition for a rehearing was denied March 4, 1980, and respondent’s petition for a hearing by the Supreme Court in Crim. No. 35144 was denied April 17, 1980.
