---
id: "pt_quarter"
kind: "pattern"
status: "draft"
is_pii: false
name: "Quarter of the year (Portuguese: trimestre)"
regexp: "^[1-4]\\.?[ºo°]? ?[Tt]rimestre(?: (?:de )?\\d{4})?$"
categories: ["datetime"]
langs: ["pt", "es", "it"]
quality: 75
url: "https://registry.apicrafter.io/datatype/pt_quarter"
---

# Quarter of the year (Portuguese: trimestre) (`pt_quarter`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Calendar quarter written in Portuguese with an ordinal number and the word trimestre, optionally followed by the year, as in "4º Trimestre" or "1.º trimestre de 2023". The justice statistics of Portugal give the quarter of a row this way; Spanish and Italian tables write the same words.

- Pattern of: [`quarter`](https://registry.apicrafter.io/datatype/quarter.md)
- Personal data (PII): no
- Categories: Date and time (datetime)
- Countries: global
- Languages: Portuguese (pt), Spanish (es), Italian (it)

## Detection

Regular expression (Python `re`):

```
^[1-4]\.?[ºo°]? ?[Tt]rimestre(?: (?:de )?\d{4})?$
```

## Examples

- `4º Trimestre` — fourth quarter
- `1.º trimestre de 2023` — first quarter of 2023
- `5º Trimestre` (invalid example) — not a quarter

## Metacrafter rules

1 rules: 0 match the field name, 1 match values.

- `ptquartervalue` (data, `pt/pt_codes.yaml`)

## Supported by tools

- [`metacrafter`](https://registry.apicrafter.io/tool/metacrafter.md)

## Translations

- pt: Trimestre
- ru: Квартал (на португальском)

## Quality

Score 75/100. Missing: source link, mapping (Wikidata, Schema.org, ...).

JSON: <https://registry.apicrafter.io/api/v1/datatypes/pt_quarter.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/datetime/pt_quarter.yaml>
