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

From: Scott Marlowe <scott(dot)marlowe(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 18:55:43
Message-ID: dcc563d11003281155t7bf156dfu13008852c4afe6c6@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, Mar 28, 2010 at 12: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?

Just stick with something simple like:

2010-03-28 13:45:30

which will always work for an insert

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Thom Brown 2010-03-28 19:03:42 Re: optimizing import of large CSV file into partitioned table?
Previous Message Andre Lopes 2010-03-28 18:27:32 How to generate a valid postgre TIMESTAMP with PHP?