Friday, March 27, 2015

PostgreSQL: date to epoch

select extract(epoch from localtimestamp(0));