
42 Mich. App. 171 (1972)
201 N.W.2d 340
PEOPLE
v.
ADAMS.
Docket No. 12430.
Michigan Court of Appeals.
Decided July 25, 1972.
Frank J. Kelley, Attorney General, Robert A. Derengoski, Solicitor General, James K. Miller, *172 Prosecuting Attorney, and Donald A. Johnston, III, Chief Appellate Attorney, for the people.
Stewart A. Christian, for defendant on appeal.
Before: R.B. BURNS, P.J., and LEVIN and TARGONSKI,[*] JJ.
R.B. BURNS, P.J.
Defendant's jury trial was interrupted and he pled guilty to assault with a deadly weapon. MCLA 750.82; MSA 28.277.
Defendant's first claim of error concerns the propriety of his guilty plea examination. It is well settled that a guilty plea to be valid must be "understandingly and voluntarily made". GCR 1963, 785.3(2); Boykin v Alabama, 395 US 238; 89 S Ct 1709; 23 L Ed 2d 274 (1969); People v Jaworski, 387 Mich 21 (1972). To "understandingly and voluntarily" enter a plea of guilty the accused must have knowledge of the constitutional rights he is waiving by pleading guilty. Both Boykin and Jaworski, supra, require a record showing that the accused was aware of (1) the right to a jury trial; (2) the right to confront one's accusers; and (3) the privilege against self-incrimination. The trial court informed defendant as follows:
"You have just heard read to you the criminal charge against you which charges you with felonious assault. The maximum penalty, if you plead guilty or are found guilty, is up to four years in prison and/or a fine of $2,000. It is a felony and it is known as felonious assault, and as you know, you are now in the trial of the matter before a jury, and, as you have heard, you do not have to take the witness stand. You have the right to remain silent and it would be the duty of the prosecuting attorney to produce witnesses who would *173 have to convince the court or the jury beyond a reasonable doubt of your guilt."
This information along with the fact that defendant was exercising his constitutional rights at trial when he decided to plead guilty convinces this Court that defendant knowingly waived them. Defendant admitted committing the crime and was adequately informed of his rights by both the trial court and his trial counsel.
Next, defendant contends it was error for the trial court to state that it would not permit him to withdraw his plea except in the most unusual circumstances because a trial had already been commenced. We find no error. There is no absolute right on the part of an accused to withdraw a guilty plea prior to sentencing. In addition, defendant did not move to have his plea set aside either before or after sentencing. People v Zaleski, 375 Mich 71 (1965); People v Whitmer, 16 Mich App 703 (1969); People v Malone, 385 Mich 769 (1971).
Lastly, defendant claims he was not given credit for time spent in custody prior to sentencing on his guilty plea. The record clearly shows that after this fact was brought to the trial court's attention he was given credit for this period of incarceration.
Affirmed.
All concurred.
NOTES
[*]  Former circuit judge, sitting on the Court of Appeals by assignment pursuant to Const 1963, art 6, § 23 as amended in 1968.
