California Code
CHAPTER 1 - Of the Local Jurisdiction of Public Offenses
Section 793.5.

793.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.

(Added by Stats. 2004, Ch. 511, Sec. 5. Effective January 1, 2005.)