datetime.epoch.unix_millisecondsMilliseconds since epoch. Common in JavaScript (Date.now()), Java (System.currentTimeMillis()), and many APIs.
$ finetype infer -i "1705312200000"
→ datetime.epoch.unix_millisecondsSELECT finetype('1705312200000');
-- → 'datetime.epoch.unix_milliseconds'to_timestamp({col}::BIGINT / 1000)-- 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.epoch.unix_milliseconds';{
"$id": "https://meridian.online/schemas/datetime.epoch.unix_milliseconds",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Milliseconds since epoch. Common in JavaScript (Date.now()), Java (System.currentTimeMillis()), and many APIs.",
"examples": [
"1705312200000",
"1577836799999"
],
"maxLength": 13,
"minLength": 13,
"pattern": "^\\d{13}$",
"title": "Unix Timestamp (milliseconds)",
"type": "string",
"x-finetype-broad-type": "TIMESTAMP",
"x-finetype-transform": "to_timestamp({col}::BIGINT / 1000)"
}17053122000001577836799999