Cal. Penal Code § 1191.3
(a) At the time of sentencing or pronouncement of judgment in which sentencing is imposed, the court shall make an oral statement that statutory law permits the award of conduct and worktime credits up to one-third or one-half of the sentence that is imposed by the court, that the award and calculation of credits is determined by the sheriff in cases involving imprisonment in county jails and by the Department of Corrections in cases involving imprisonment in the state prison, and that credit for presentence incarceration served by the defendant is calculated by the probation department under current state law.
As used in this section, “victim” means the victim of the offense, the victim’s parent or guardian if the victim is a minor, or the victim’s next of kin.