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?