Soma Interesting <dfunct(at)telus(dot)net> writes:
> I'm trying to write a function with pl/pgsql that takes member_id (int4)
> and adds this to now() converted to seconds. Is there an existing function
> to do the conversion of a timestamp to seconds?
date_part('epoch', timestamp) produces a Unix-style seconds count.
regards, tom lane