For a person committed as a mentally disordered sex offender under former Section 6316 or 6316.2 of the Welfare and Institutions Code, or committed pursuant to Section 1026 or 1026.5, or committed pursuant to Section 2972, who is placed on outpatient status under the provisions of this title, time spent on outpatient status, except when placed in a locked facility at the direction of the outpatient supervisor, shall not count as actual custody and shall not be credited toward the person's maximum term of commitment or toward the person's term of extended commitment. Nothing in this section shall be construed to extend the maximum period of parole of a mentally disordered offender.
Ca. Pen. Code § 1600.5