delivered the Opinion of the Court.
The appellant, Anthony J. Duran, seeks review of the district court’s denial of his pro se petition for a writ of habeas corpus and the denial of his motion for appointment of counsel. We affirm.
I
On June 16, 1972, Duran was sentenced to a term of life imprisonment after having been convicted of first degree murder. Duran was paroled on March 1,1984. On November 23, 1988, Duran’s parole officer filed a parole violation complaint with the Colorado State Parole Board. The complaint alleged that Duran had committed a new offense and that he failed to participate in antabuse and alcohol treatment. Duran’s parole was revoked on April 13, 1989.
Duran filed a pro se petition for writ of habeas corpus in the Crowley County District Court on May 20, 1992 pursuant to the Habeas Corpus Act, sections 13-45-101 to -119, 6A C.R.S. (1987 & 1992 Supp.). In his petition, Duran argued that the parole board lacked jurisdiction to revoke his parole since his parole had already statutorily expired. Duran also filed a motion for appointment of counsel, asking the district court to appoint counsel for him in the habeas corpus proceedings.
On June 4, 1992, the district court held a telephone hearing on Duran’s petition. At that hearing, the district court denied Duran’s request for appointment of counsel. In an order dated June 15, 1992, the district court also denied Duran’s petition, finding that his parole had been lawfully revoked. The court reasoned that a parole violation complaint was filed 4 years, 8 months and 22 days after Duran was paroled, and that the filing of this complaint tolled the five-year expiration period imposed by statute. See § 17-2-103(6)(c), 8A C.R.S. (1993 Supp.).
Duran filed an appeal from the district court’s denial of his habeas corpus petition and a motion for appointment of counsel in the Colorado Court of Appeals. The court of appeals referred Duran’s appeal to this court to decide whether jurisdiction was properly vested in the Colorado Supreme Court or the Colorado Court of Appeals. See § 13-4-110(l)(a), 6A C.R.S. (1987). We accepted jurisdiction over Duran’s appeal and now affirm.
II
As an initial matter, we consider Duran’s petition as an appeal from the denial of a Crim.P. 35(c) motion, rather than an appeal from the denial of a habeas corpus petition.
A habeas corpus proceeding is a civil action, the essential purpose of which is to determine whether a person is unlawfully detained.
Graham v. Gunter,
In this case, a Crim.P. 35(c) motion for post-conviction relief provided Duran with an appropriate avenue for challenging the revocation of his parole. Rule 35(c)(2)(VII) of the Rules of Criminal Procedure expressly authorizes post-conviction relief from an invalid sentence on the ground “[t]hat the sentence imposed has been fully served or that there has been unlawful revocation of parole, probation, or conditional release.”
See also
§ 18-l-410(l)(h), 8B C.R.S. (1986) (authorizing post-conviction relief on the same grounds);
Turman v. Buckallew,
Nor is Duran barred from filing a Crim.P. 35(e) motion by the statute of limitations set forth in section 16-5-402, 8A C.R.S. *378 (1986). 1 Duran was convicted of first degree murder, which is a class 1 felony. See Ch. 121, sec. 1, § 40-3-102(3), 1971 Colo.Sess. Laws 388, 418. According to section 16 — 5— 402(1), there is no limit on the time period in which to challenge any class 1 felony.
Previously, we have held that a habe-as corpus petition which seeks relief available under Crim.P. 35 should be treated as a Crim.P. 35 motion based upon the substantive issues raised in the petition, rather than the label placed on the pleading.
Turman,
In this case, Duran was convicted and sentenced in Denver District Court. Thus, while Crowley County District Court should have treated Duran’s habeas corpus petition as a Crim.P. 35(c) motion for post-conviction relief, it should not have ruled on the merits of Duran’s petition. Instead, the district court should have converted Duran’s petition into a Crim.P. 35(c) motion, and then transferred venue to the sentencing court in the City and County of Denver.
See Graham,
Ill
Duran argues that the parole board lacked jurisdiction to revoke his parole in April 1989 because his parole had already expired. We disagree.
At the time Duran was sentenced in 1972, a prisoner could be placed on parole for as long as the remainder of his sentence. § 17-2-201(5), 8 C.R.S. (1978). In 1979, this statute was amended to fix a maximum duration of parole in the amount of the sentence or five years, whichever is less.
See
Ch. 157, sec. 12, § 17-2-201(5)(a), 1979 Colo.Sess. Laws 664, 667. That provision remains in effect today for prisoners who committed crimes before July 1,1979. § 17-2-201(5)(a), 8A C.R.S. (1986). However, in 1987 the General Assembly enacted section 17 — 2—103(6)(c), which provides that the filing of a complaint by the parole officer tolls the expiration of the parolee’s parole.
See
Ch. 125, sec. 5, § 17-2-103(6)(c), 1987 Colo.Sess.Laws 650, 651. This statute applies to all offenders, including those who committed crimes before the statute was enacted.
See Goetz,
Duran was paroled on March 1, 1984. A parole violation complaint was filed 4 years, 8 months and 22 days later on November 23, 1988. Therefore, when the Parole Board revoked Duran’s parole on April 13,1989, the five-year period imposed by statute had not expired.
*379 IV
Duran also contends that counsel should have been appointed to represent him in the district court proceedings. Again, we disagree.
No Sixth Amendment right to counsel attaches for indigents seeking post-conviction relief.
Pennsylvania v. Finley,
Accordingly, the judgment of the district court is affirmed.
Notes
. Crim.P. 35(c) motions are collateral attacks on criminal convictions and are therefore subject to the statute of limitations set forth in section 16-5-402.
People v. Wiedemer,
