Soma Interesting 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', value) /* seconds since 1970 */
--
Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/