datetime.epoch.unix_secondsSeconds since 1970-01-01 00:00:00 UTC. The standard epoch representation used in most programming languages and systems.
$ finetype infer -i "1705312200"
→ datetime.epoch.unix_secondsSELECT finetype('1705312200');
-- → 'datetime.epoch.unix_seconds'to_timestamp({col}::BIGINT)-- 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_seconds';{
"$id": "https://meridian.online/schemas/datetime.epoch.unix_seconds",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Seconds since 1970-01-01 00: 00: 00 UTC. The standard epoch representation used in most programming languages and systems.",
"examples": [
"1705312200",
"1577836799",
"1000000000"
],
"maxLength": 10,
"minLength": 10,
"pattern": "^\\d{10}$",
"title": "Unix Timestamp (seconds)",
"type": "string",
"x-finetype-broad-type": "TIMESTAMP",
"x-finetype-transform": "to_timestamp({col}::BIGINT)"
}170531220015778367991000000000