In any case in which a person is confined to a city or county jail for a definite period of time for contempt pursuant to an action or proceeding other than a criminal action or proceeding, all of the provisions of law authorizing, requiring, or otherwise relating to, the performance of labor or work by persons sentenced to such facilities for like periods of time under a judgment of imprisonment, or a fine and imprisonment until the fine is paid or as a condition of probation after suspension of imposition of a sentence or suspension of execution of sentence, in a criminal action or proceeding, shall apply.
Nothing in this section shall be construed to authorize the confinement of any prisoner contrary to the provisions of Section 4001.
4000
4000.5
4001
4001.1
4002
4003
4004
4004.5
4005
4006
4006.5
4007
4008
4009
4010
4011
4011.1
4011.2
4011.5
4011.6
4011.7
4011.8
4011.9
4011.10
4011.11
4012
4013
4014
4015
4016
4016.5
4017
4017.1
4017.5
4018
4018.1
4018.5
4018.6
4019
4019.1
4019.2
4019.3
4019.4
4019.5
4020
4020.4
4020.7
4020.8
4021
4022
4023
4023.5
4023.6
4024
4024.1
4024.2
4024.3
4024.4
4025
4025.5
4026
4027
4028
4029
4030
4031
4000.5
4001
4001.1
4002
4003
4004
4004.5
4005
4006
4006.5
4007
4008
4009
4010
4011
4011.1
4011.2
4011.5
4011.6
4011.7
4011.8
4011.9
4011.10
4011.11
4012
4013
4014
4015
4016
4016.5
4017
4017.1
4017.5
4018
4018.1
4018.5
4018.6
4019
4019.1
4019.2
4019.3
4019.4
4019.5
4020
4020.4
4020.7
4020.8
4021
4022
4023
4023.5
4023.6
4024
4024.1
4024.2
4024.3
4024.4
4025
4025.5
4026
4027
4028
4029
4030
4031