Skip to content

ISO Time with Microseconds

Type Registry

ISO Time with Microseconds

datetime.time.iso

24-hour time with microsecond precision. Common in high-frequency data, scientific instruments, and log files.

Domain datetimetime
Casts to TIME
Scope Universal

Try it

CLI
$ finetype infer -i "10:30:00.123456"
→ datetime.time.iso

DuckDB

Detect
SELECT finetype('10:30:00.123456');
-- → 'datetime.time.iso'
Cast expression
strptime({col}, '%H:%M:%S.%f')::TIME
Format: %H:%M:%S.%f
Safe cast pipeline
-- Normalise and cast in one step
SELECT TRY_CAST(finetype_cast(my_column) AS TIME) AS clean_value
FROM my_table
WHERE finetype(my_column) = 'datetime.time.iso';

JSON Schema

finetype schema datetime.time.iso
{
  "$id": "https://noon.sh/schemas/datetime.time.iso",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "24-hour time with microsecond precision. Common in high-frequency data, scientific instruments, and log files.",
  "examples": [
    "10: 30: 00.123456",
    "23: 59: 59.000000"
  ],
  "maxLength": 15,
  "minLength": 15,
  "pattern": "^\\d{2}:\\d{2}:\\d{2}\\.\\d{6}$",
  "title": "ISO Time with Microseconds",
  "type": "string"
}

Examples

10:30:00.12345623:59:59.000000

Types in datetime