Re: How to generate a valid postgre TIMESTAMP with PHP? - Mailing list pgsql-general

From APseudoUtopia
Subject Re: How to generate a valid postgre TIMESTAMP with PHP?
Date
Msg-id 27ade5281003281511w50950054nc89a9737b47103e0@mail.gmail.com
Whole thread Raw
In response to How to generate a valid postgre TIMESTAMP with PHP?  (Andre Lopes <lopes80andre@gmail.com>)
List pgsql-general
On Sun, Mar 28, 2010 at 2:27 PM, Andre Lopes <lopes80andre@gmail.com> wrote:
> Hi,
>
> I'am writing some code in PHP and I need to generate a valid postgresql
> TIMESTAMP with PHP.
>
> Any PHP programmer thar can help me on how to generate valid TIMESTAMP's
> with PHP?
>
> Sorry my bad english.
>
>
> Best Regards,
>

In postgresql, you could use CURRENT_TIMESTAMP.

Or, in PHP, you could use date('Y-m-d H:i:s');

pgsql-general by date:

Previous
From: Guillaume Lelarge
Date:
Subject: Re: How many Mandatory Process are there in Postgres
Next
From: David Kerr
Date:
Subject: Re: Connection Pooling