The court may direct that a prisoner sentenced to confinement in a county jail, alternate jail facility, or community correctional residential treatment facility, be released from custody during specified hours, as provided by sections 356.26 to 356.35.