MeridianMERIDIAN

ISO Datetime, second precision (no timezone)

ISO 8601-like format with second precision and no timezone indicator (e.g. 2013-06-04T01:02:03). Common in database exports and log files. The zoneless sibling of iso_8601 (which requires a trailing Z).

ISO Datetime, second precision (no timezone)

datetime.timestamp.iso_seconds

ISO 8601-like format with second precision and no timezone indicator (e.g. 2013-06-04T01:02:03). Common in database exports and log files. The zoneless sibling of iso_8601 (which requires a trailing Z).

Domain
datetime
Category
timestamp
Casts to
TIMESTAMP
Scope
Universal

Try it

CLI
$ finetype infer -i "2013-06-04T01:02:03" --mode column
→ datetime.timestamp.iso_seconds

DuckDB

Detect
SELECT ft_infer('2013-06-04T01:02:03');
-- → 'datetime.timestamp.iso_seconds'
Cast expression
strptime({col}, '%Y-%m-%dT%H:%M:%S')
-- Format: %Y-%m-%dT%H:%M:%S
Safe cast pipeline
-- Normalise and cast in one step
SELECT TRY_CAST(ft_cast(my_column) AS TIMESTAMP) AS clean_value
FROM my_table
WHERE ft_infer(my_column) = 'datetime.timestamp.iso_seconds';

JSON Schema

finetype taxonomy datetime.timestamp.iso_seconds -o json-schema
{
  "$id": "https://meridian.online/schemas/datetime.timestamp.iso_seconds",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "ISO 8601-like format with second precision and no timezone indicator (e.g. 2013-06-04T01: 02: 03). Common in database exports and log files. The zoneless sibling of iso_8601 (which requires a trailing Z).",
  "examples": [
    "2013-06-04T01: 02: 03",
    "2024-01-15T10: 30: 00"
  ],
  "maxLength": 19,
  "minLength": 19,
  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$",
  "title": "ISO Datetime, second precision (no timezone)",
  "type": "string",
  "x-finetype-label": "datetime.timestamp.iso_seconds",
  "x-finetype-pii": false
}

Examples

2013-06-04T01:02:032024-01-15T10:30:00

Type Registry