date_part('epoch', ...) returns the number of seconds from the beginning of the (Unix) epoch, i.e. 1970.