California Penal Code § 656.5
Text of § 656.5
Any person convicted of a crime based upon an act or omission for which he or she has been acquitted or convicted in another country shall be entitled to credit for any actual time served in custody in a penal institution in that country for the crime, and for any additional time credits that would have actually been awarded had the person been incarcerated in California.
Cite this section
Cal. Penal Code § 656.5
https://lawconsensus.com/codes/california/penal-code/656-5/
LawCensus reproduces the text of the law for reference. It may not show the most recent changes. Check the official source before you rely on it: official text. This is general information, not legal advice.