Created
May 2, 2019 05:24
-
-
Save miguelmota/c24238fb82a65ac4d2afd5d9d66f00f1 to your computer and use it in GitHub Desktop.
PostgreSQL timestamp datetime to unix timestamp integer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- assuming created_at is timestamp column | |
extract(epoch from created_at)::numeric::integer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment