AB 2942 applies to any criminal offense and any type of sentence.