MeridianMERIDIAN

SQL Minute-Precision Datetime

datetime.timestamp.sql_minutes

Space-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

ValueAs TIMESTAMP
2024-01-15 10:302024-01-15 10:30:00
2019-12-31 23:592019-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

Pattern
^\d{4}-\d{2}-\d{2} \d{2}:\d{2}$
ValueLengthShape
2024-01-15 10:3016matches
2019-12-31 23:5916matches
2024-01-15 10:315rejected: 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

CLI · DuckDB
$ 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'
Cast expression
strptime({col}, '%Y-%m-%d %H:%M')
-- Format: %Y-%m-%d %H:%M

Schema

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

Type Registry