Unix Timestamp (seconds)
Seconds since 1970-01-01 00:00:00 UTC. The standard epoch representation used in most programming languages and systems.
Unix Timestamp (seconds)
datetime.epoch.unix_secondsSeconds since 1970-01-01 00:00:00 UTC. The standard epoch representation used in most programming languages and systems.
Domain
datetime
Category
epoch
Casts to
TIMESTAMP
Scope
Universal
Try it
CLI
$ finetype infer -i "1705312200"
→ datetime.epoch.unix_secondsDuckDB
Detect
SELECT finetype('1705312200');
-- → 'datetime.epoch.unix_seconds'Cast expression
to_timestamp({col}::BIGINT)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.epoch.unix_seconds';JSON Schema
finetype schema 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)"
}Examples
170531220015778367991000000000Aliases
unix_timestamptimestamp