ISO 8601 with Microseconds
Type Registry
ISO 8601 with Microseconds
datetime.timestamp.iso_8601_microseconds Extended ISO 8601 with microsecond precision and UTC indicator. Common in high-precision logging and scientific data.
Domain datetime›timestamp
Casts to TIMESTAMP
Scope Universal
Try it
CLI
$ finetype infer -i "2024-01-15T10:30:00.123456Z"
→ datetime.timestamp.iso_8601_microseconds DuckDB
Detect
SELECT finetype('2024-01-15T10:30:00.123456Z');
-- → 'datetime.timestamp.iso_8601_microseconds' Cast expression
strptime({col}, '%Y-%m-%dT%H:%M:%S.%fZ') Format: %Y-%m-%dT%H:%M:%S.%fZ 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_8601_microseconds'; JSON Schema
finetype schema datetime.timestamp.iso_8601_microseconds {
"$id": "https://noon.sh/schemas/datetime.timestamp.iso_8601_microseconds",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Extended ISO 8601 with microsecond precision and UTC indicator. Common in high-precision logging and scientific data.",
"examples": [
"2024-01-15T10: 30: 00.123456Z",
"2019-12-31T23: 59: 59.000000Z"
],
"maxLength": 27,
"minLength": 27,
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{6}Z$",
"title": "ISO 8601 with Microseconds",
"type": "string"
} Examples
2024-01-15T10:30:00.123456Z2019-12-31T23:59:59.000000Z Also known as
iso_8601_ext