Unix timestamp in PostgreSQL
Since I’m looking for it every time, I’ve decided to put it here.
To convert UNIX Timestamp to Postgres timestamp:
To convert Postgres timestamp to UNIX timestamp:
Skip the ::int
cast to get fractional part.
Since I’m looking for it every time, I’ve decided to put it here.
To convert UNIX Timestamp to Postgres timestamp:
To convert Postgres timestamp to UNIX timestamp:
Skip the ::int
cast to get fractional part.