Unix Timestamp (seconds)
Type Registry
Unix Timestamp (seconds)
datetime.epoch.unix_seconds Seconds since 1970-01-01 00:00:00 UTC. The standard epoch representation used in most programming languages and systems.
Domain datetime›epoch
Casts to TIMESTAMP
Scope Universal
Try it
CLI
$ finetype infer -i "1705312200"
→ datetime.epoch.unix_seconds DuckDB
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://noon.sh/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"
} Examples
170531220015778367991000000000 Also known as
unix_timestamptimestamp