What you need to do is contact the court immediately and ask for a continuance. Unfortunately, when it is this late, you may need to contact the prosecutor's office and see if the prosecutor will agree to it. Otherwise, you will need to skip class and go to the hearing.