time to integer

From: Soma Interesting <dfunct(at)telus(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: time to integer
Date: 2001-03-06 18:56:40
Message-ID: 5.0.2.1.0.20010306105421.02f88b10@pop.telus.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2001-03-06 19:04:16 pg_log
Previous Message Ian Lance Taylor 2001-03-06 17:54:46 Re: name vs varchar vs text?