Re: How to generate a valid postgre TIMESTAMP with PHP?

From: APseudoUtopia <apseudoutopia(at)gmail(dot)com>
To: Andre Lopes <lopes80andre(at)gmail(dot)com>
Cc: postgresql Forums <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to generate a valid postgre TIMESTAMP with PHP?
Date: 2010-03-28 22:11:28
Message-ID: 27ade5281003281511w50950054nc89a9737b47103e0@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, Mar 28, 2010 at 2:27 PM, Andre Lopes <lopes80andre(at)gmail(dot)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');

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David Kerr 2010-03-28 22:25:17 Re: Connection Pooling
Previous Message Guillaume Lelarge 2010-03-28 21:46:19 Re: How many Mandatory Process are there in Postgres