> 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, § 30-1-2 — Application of code

- **Citation**: NMSA 1978, § 30-1-2
- **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/18530/index.do#!b/30-1-2](https://nmonesource.com/nmos/nmsa-unanno/en/item/18530/index.do#!b/30-1-2)
- **Canonical URL**: [https://corpuslaw.us/codes/new-mexico/chapter-30/article-1/section-30-1-2](https://corpuslaw.us/codes/new-mexico/chapter-30/article-1/section-30-1-2)
- **Semantic URL**: [https://corpuslaw.us/codes/new-mexico/chapter-30/article-1/section-30-1-2](https://corpuslaw.us/codes/new-mexico/chapter-30/article-1/section-30-1-2)

## Hierarchy

Chapter 30 — Criminal Offenses > Article 1 — General Provisions

## Text

30-1-2. Application of code

The Criminal Code has no application to crimes committed prior to its effective date.

A crime is committed prior to the effective date of the Criminal Code if any of the essential elements of the crime occurred before that date.

Prosecutions for prior crimes shall be governed, prosecuted and punished under the laws existing at the time such crimes were committed.

1953 Comp., § 40A-1-2, enacted by Laws 1963, ch. 303, § 1-2.
