Re: php, time and postgresql

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Rasmus Resen Amossen <spunk(at)rhk(dot)dk>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: php, time and postgresql
Date: 2001-01-12 21:29:41
Message-ID: 20010112152941.A23518@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

How about doing something like this:
bruno=> select 'epoch'::timestamp + '979333398 second';
?column?
------------------------
2001-01-12 15:03:18-06

On Fri, Jan 12, 2001 at 10:03:54PM +0100,
Rasmus Resen Amossen <spunk(at)rhk(dot)dk> wrote:
> I want to save some time information in postgresql with php. What is the
> datatype in postgresql coresponding to the mktime()-unixtime function in
> php (creates a time in the format "979333398" eg.)?
>
> Thanx!

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alfred Perlstein 2001-01-12 22:06:12 Re: FreeBSDers paying attention? (was Re: exit status 26)
Previous Message Norman J. Clarke 2001-01-12 21:19:03 Re: SQL queries from within PL/PERL triggers?