SQL Minute-Precision Datetime
datetime.timestamp.sql_minutesSpace-separated date and time to minute precision, without seconds or timezone (e.g. 2024-01-15 10:30). The minute-precision sibling of sql_standard; DuckDB parses it natively as a TIMESTAMP (padding :00). Common in spreadsheet and database exports that drop the seconds field.
Worked samples
DuckDB 1.5.5 · finetype 0.6.62
| Value | As TIMESTAMP |
|---|---|
| 2024-01-15 10:30 | 2024-01-15 10:30:00 |
| 2019-12-31 23:59 | 2019-12-31 23:59:00 |
- %Y
- four-digit year
- %m
- month, two digits
- %d
- day of month, two digits
- %H
- hour, 24-hour clock
- %M
- minutes
Shape
^\d{4}-\d{2}-\d{2} \d{2}:\d{2}$| Value | Length | Shape |
|---|---|---|
| 2024-01-15 10:30 | 16 | matches |
| 2019-12-31 23:59 | 16 | matches |
| 2024-01-15 10:3 | 15 | rejected: one character short |
Detection notes
Added 2026-07-11 (minute-precision timestamp family completion). Add-not- broaden: sql_standard keeps its seconds-required pattern so round-trip transforms stay correct; this leaf owns the zoneless minute form. Recovered deterministically by datetime_format_refinement (the 244-dim model does not predict it). Sibling of dmy_hm (slash/day-first minute) and iso_minutes (ISO-T minute).
Use it
$ finetype infer -i "2024-01-15 10:30" --mode column
→ datetime.timestamp.sql_minutes
SELECT ft_infer('2024-01-15 10:30');
-- → 'datetime.timestamp.sql_minutes'strptime({col}, '%Y-%m-%d %H:%M')
-- Format: %Y-%m-%d %H:%MSchema
https://meridian.online/schemas/datetime.timestamp.sql_minutes · Frictionless type datetime · %Y-%m-%d %H:%M
finetype taxonomy datetime.timestamp.sql_minutes -o json-schema