> For AI agents: read the machine-readable documentation index at [https://corpuslaw.us/llms.txt](https://corpuslaw.us/llms.txt) or the single-file full reference at [https://corpuslaw.us/llms-full.txt](https://corpuslaw.us/llms-full.txt).

# NMSA 1978, § 31-20-12 — Credit for time prior to conviction

- **Citation**: NMSA 1978, § 31-20-12
- **Node Type**: section
- **Jurisdiction**: New Mexico (state)
- **Code Body**: New Mexico Statutes Annotated 1978 (through the 2026 session) (NMSA 1978)
- **Official Source**: [https://nmonesource.com/nmos/nmsa-unanno/en/item/18531/index.do#!b/31-20-12](https://nmonesource.com/nmos/nmsa-unanno/en/item/18531/index.do#!b/31-20-12)
- **Canonical URL**: [https://corpuslaw.us/codes/new-mexico/chapter-31/article-20/section-31-20-12](https://corpuslaw.us/codes/new-mexico/chapter-31/article-20/section-31-20-12)
- **Semantic URL**: [https://corpuslaw.us/codes/new-mexico/chapter-31/article-20/section-31-20-12](https://corpuslaw.us/codes/new-mexico/chapter-31/article-20/section-31-20-12)

## Hierarchy

Chapter 31 — Criminal Procedure > Article 20 — Sentencing

## Text

31-20-12. Credit for time prior to conviction

A person held in official confinement on suspicion or charges of the commission of a felony shall, upon conviction of that or a lesser included offense, be given credit for the period spent in presentence confinement against any sentence finally imposed for that offense.

1953 Comp., § 40A-29-25, enacted by Laws 1967, ch. 221, § 2; and recompiled as 1953 Comp., § 40A-29-48, by Laws 1977, ch. 216, § 16.
