In 1969 Larry Darnell Thomas pleaded guilty to first degree murder, § 559.010, RSMo 1959, and assault with intent to kill with malice, § 559.180, RSMo 1959. He was sentenced to serve two concurrent life sentences without credit for pre-sentence jail time. He appealed from denial, without evidentiary hearing, of two motions for post conviction relief to challenge: 1) the standard by which a juvenile may be prosecuted under the general law; 2) voluntariness of his guilty pleas; 3) denial of credit for pre-sentence jail time; and 4) denial of his second post-conviction motion without appointment of counsel. The court of appeals affirmed and this Court transferred the appeal to review principally whether the trial court erred by denial of credit for pre-sen-tence jail time. Affirmed.
On April 30,1968, Larry Darnell Thomas, age 16, together with another, entered the home of Mr. McAndrew armed with a loaded pistol and announced an intention to rob Mr. McAndrew and his wife. The accomplice took a wallet from Mr. McAndrew, then proposed sexual relations with his wife. She refused and the accomplice shot and wounded her. When McAndrews re*794monstrated, Thomas shot and killed him. The assailants took two wallets and left. Thomas was arrested the next day and taken to the Juvenile Detention Center in the City of St. Louis.
On June 25, 1968, after evidentiary hearing during which Larry Darnell Thomas was represented by counsel, the juvenile court found him not a proper subject to be dealt with under the Juvenile Code and dismissed the petition in his interest to permit him to be prosecuted under the general law.
On September 29, 1969, Thomas, then 18 years old, appeared with counsel in the Circuit Court of the City of St. Louis. The trial court determined the voluntariness of defendant’s decision to plead guilty, his guilty pleas were entered, and the sentences were imposed. He was in custody 516 days prior to sentencing.
On April 19, 1977, Thomas, pro se, filed a Motion to Vacate and Set Aside Judgment under Rule 27.26, to attack his guilty pleas and the juvenile court proceeding. The motion was denied without an evidentiary hearing. On August 21, 1977, he, again pro se, filed a Motion to Correct Sentence in an attempt to get his pre-sentence jail time credited. That motion was denied on the ground that the allegations concerning allowance of jail time could have been included in the prior Motion to Vacate. Appeals from the denials of the April and August, 1977, motions were consolidated.
Appellant argues that § 211.071, RSMo 1969, “is invalid and unconstitutional because it is void for vagueness in that it provides no standard as to whether the juvenile ‘is not a proper subject’ to be dealt with under the provisions of the juvenile code . . . .”
Section 211.071 provides in part:
In the discretion of the judge of the juvenile court, when any petition under this chapter alleges that a child of the age of fourteen years or older has committed an offense which would be a felony if committed by an adult, . the petition may be dismissed and such child or minor may be prosecuted under the general law, whenever the judge after receiving the report of the investigation required by this chapter and hearing evidence finds that such child or minor is not a proper subject to be dealt with under the provisions of this chapter.
State v. Williams, 473 S.W.2d 382 (Mo.1971), ruled and denied this same contention. Defendant contended that “§ 211.-071 is invalid because it provides no standards for determining that he is not a proper subject to be dealt with” under the Juvenile Code. In ruling the section constitutionally valid, the Court stated:
the directive in the Juvenile Code that the juvenile court may, in its discretion, authorize a “child” of the age of fourteen years or older to be prosecuted under the general law, when after hearing it is found that such action shall be conducive “to the child’s welfare and the best interest of the state,” affords adequate and sufficient standards to guide the court in carrying out the legislative directive and intent.
Id. at 384. Coney v. State, 491 S.W.2d 501 (Mo.1973) reached the same conclusion. Appellant’s further contention that he was entitled to an evidentiary hearing on this issue is refuted by the text of Rule 27.26 which provides for such hearing “if issues of fact are raised in the motion.” An attack on the constitutionality of a statute does not raise an issue of fact.
Appellant alleges the court erroneously denied him an evidentiary hearing on his allegation that his plea “was not knowing, intelligent and voluntary due to ineffective assistance of counsel . . .
To be entitled to an evidentiary hearing on the voluntariness of a guilty plea, defendant must plead facts which if true entitle him to relief and must show that such factual allegations are not refuted by facts elicited at the guilty plea hearing. Smith v. State, 513 S.W.2d 407 (Mo. banc 1974) cert. denied, 420 U.S. 911, 95 S.Ct. 832, 42 L.Ed.2d 841 (1975). If the record conclusively establishes that the accused knowingly and voluntarily pleaded *795guilty, it is proper to deny an evidentiary hearing on a motion for post conviction relief based on an allegation that the guilty plea was coerced. Jackson v. State, 585 S.W.2d 495 (Mo. banc 1979).
The record of the plea and sentencing shows that the trial court explained to defendant the nature of the charge against him and possible penalties, that he had the right to a jury trial with counsel, and that he was waiving this right upon a plea of guilty. In addition, the court determined in open court after questioning defendant, his mother, and his father that the plea was voluntary and not the result of force or threats. Finally, the prosecutor recited what the state’s evidence would show, thus establishing the existence of a factual basis for the plea, and defendant agreed with that version of the facts. He also said that his attorney was representing him in a proper manner and doing everything for his interest in the matter.
The record thus establishes that defendant’s plea was voluntary within the meaning of Rule 25.04 (present Rule 24.02). Accordingly, the trial court correctly denied an evidentiary hearing on the question of voluntariness.
Appellant challenges the court’s denial of credit for the jail time served prior to his sentencing September 29, 1969. Section 546.615.1, RSMo 1969 provided in part:
When a person has been convicted of a criminal offense in this state
(2) The time spent by him in prison or jail prior to his conviction and the date on which sentence is pronounced may, in the discretion of the judge pronouncing sentence, be calculated as part of the term of the sentence imposed upon him.1
Appellant argues that by making credit for pre-sentence jail time discretionary, § 546.-615.1 unconstitutionally discriminates between those defendants who are financially able to make bond and those who are not. A defendant with sufficient means has no jail time because he is able to make bond. Appellant cites Durkin v. Davis, 390 F.Supp. 249 (E.D.Va.1975) for the proposition that, “failure to credit pre-sentence jail time to that class of persons who are too poor to make bond constitutes an invidious discrimination based on indigency and there is no rational justification for validating a system which requires the poor to suffer greater punishment than the wealthy solely because of their indigency.”
Such an argument could apply only if appellant established that he was denied bond because of financial inability to make bond. This is not the case.
Article I, § 20 of the Missouri Constitution provides:
That all persons shall be bailable by sufficient sureties, except for capital offenses, when the proof is evident or the presumption great.
The record shows that defendant was charged with murder in the first degree and assault with intent to kill with malice. There is no record of a request of a hearing for purposes of bail. Ultimately defendant pleaded guilty to both counts, after a recitation by the state of what the evidence would show. The state’s version, with which defendant agreed, established guilt of felony murder, a capital offense at the time of the plea. Defendant thus was charged with a capital offense for which he likely would not have been bailable and has therefore not established that were it not for his indigency, he would not have remained in jail prior to his sentencing. In these circumstances there was no denial of equal protection. See Valentine v. State, 541 S.W.2d 558 (Mo. banc 1976) in denial of the same contention. See also Gregg v. Wyrick, 449 F.Supp. 969 (W.D.Mo.1978) recognizing that equal protection is not denied an indigent unable to make bail if his *796offense is not bailable under Mo.Const., Art. 1, § 20, supra.2
Appellant further contends that by the failure to grant credit for pre-sentence jail time, the trial court imposed a sentence in excess of the statutory maximum. He argues that because the maximum sentence on each count of life imprisonment was given, the denial of jail time credit created a sentence of life plus 516 days.
The maximum sentence of life was given by the trial court in this case as authorized by statute. Limitation on a court’s sentencing power applies to the length of sentence it can impose and not to the total time of confinement. The trial court in this case did not sentence defendant to the time he spent in jail before conviction; pre-conviction confinement is not part of the sentence imposed. The time spent in jail awaiting trial or sentence cannot be considered as part of any judgment subsequently pronounced and is not embraced within any penalty imposed.
The legislature set life imprisonment as the maximum for each count in this case. The legislature also gave the sentencing court the discretion to grant or deny pre-sentence jail time. The trial court did not abuse its discretion by its denial. See O’Neal v. State, 486 S.W.2d 206, 208-209 (Mo.1972). Further, because this point involves a question of law and did not raise a question of fact, the trial court did not err in denying an evidentiary hearing on the issue of failure to credit time for pre-sentence custody. Rule 27.26(e), supra.
Appellant contends the court erred by dismissing his petition to have jail time credited without first appointing counsel. Fields v. State, 572 S.W.2d 477 (Mo. banc 1978) mandated appointment of counsel for indigent pro se movants under Rule 27.26. In cases prior to Fields v. State, supra, however, appointment of counsel is required if movant pleads facts, not conclusions, which if true would warrant relief and such factual allegations are not refuted by the record. Sweazea v. State, 588 S.W.2d 244, 245 (Mo.App.1979). Movant pleaded that he was entitled to credit for jail time. As demonstrated, that allegation does not warrant relief and the court thus did not err in failure to appoint counsel.
Accordingly, the judgments in denial of relief under Rule 27.26 are affirmed.
DONNELLY, RENDLEN, WELLIVER and MORGAN, JJ., concur. BARDGETT, C. J., concurs in part and dissents in part in separate opinion filed. SEILER, J., dissents and concurs in separate opinion of BARDGETT, C. J.. A 1971 amendment to the statute made credit for jail time mandatory in cases in which judgment was not final prior to September 28, 1971. Section 546.615, RSMo 1969, as thus amended, was repealed in 1977 and § 558.031, RSMo 1978 now embodies mandatory credit for jail time.
. 77 A.L.R.3d 182 (1977) Right to Credit for Time Spent in Custody Prior to Trial or Sentence, § 5[b], indicates a general rule that a violation of equal protection occurs where the statutory maximum is imposed and the court fails to give credit for pre-conviction time in custody only if there is a showing that bail was unavailable due to financial inability.