Meridianmeridian

ISO with Space Separator and Z

datetime.timestamp.iso_space_zulu

RFC 3339 variant using space instead of T separator with UTC Z indicator. SQLite datetime('now') output and some cloud service log formats.

Domain
datetime
Category
timestamp
Casts to
TIMESTAMP
Scope
Universal

Try it

CLI
$ finetype infer -i "2024-01-15 14:30:00Z"
→ datetime.timestamp.iso_space_zulu

DuckDB

Detect
SELECT finetype('2024-01-15 14:30:00Z');
-- → 'datetime.timestamp.iso_space_zulu'
Cast expression
strptime({col}, '%Y-%m-%d %H:%M:%SZ')
-- Format: %Y-%m-%d %H:%M:%SZ
Safe cast pipeline
-- Normalise and cast in one step
SELECT TRY_CAST(finetype_cast(my_column) AS TIMESTAMP) AS clean_value
FROM my_table
WHERE finetype(my_column) = 'datetime.timestamp.iso_space_zulu';

JSON Schema

finetype schema datetime.timestamp.iso_space_zulu
{
  "$id": "https://meridian.online/schemas/datetime.timestamp.iso_space_zulu",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "RFC 3339 variant using space instead of T separator with UTC Z indicator. SQLite datetime('now') output and some cloud service log formats.",
  "examples": [
    "2024-01-15 14: 30: 00Z",
    "2023-12-31 23: 59: 59Z",
    "2024-06-01 00: 00: 00Z"
  ],
  "maxLength": 20,
  "minLength": 20,
  "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}Z$",
  "title": "ISO with Space Separator and Z",
  "type": "string",
  "x-finetype-broad-type": "TIMESTAMP",
  "x-finetype-format-string": "%Y-%m-%d %H:%M:%SZ",
  "x-finetype-transform": "strptime({col}, '%Y-%m-%d %H:%M:%SZ')"
}

Examples

2024-01-15 14:30:00Z2023-12-31 23:59:59Z2024-06-01 00:00:00Z

Aliases

sqlite_utc