When Health and Safety Code 11550(c) comes in handy
Health and Safety Code 11550(c) states: c) The court may, when it would be in the interest of justice, permit any person convicted of a violation of subdivision (a) punishable under subdivision (a) or (b) to complete a licensed drug rehabilitation program in lieu of part or all of the imprisonment in the county jail. […]