Re: Newbie timestamp question - Mailing list pgsql-general

From Richard Huxton
Subject Re: Newbie timestamp question
Date
Msg-id 200403171909.20207.dev@archonet.com
Whole thread Raw
In response to Newbie timestamp question  ("Robin 'Sparky' Kopetzky" <sparkyk@blackmesa-isp.net>)
Responses Re: Newbie timestamp question
List pgsql-general
On Wednesday 17 March 2004 18:52, Robin 'Sparky' Kopetzky wrote:
> Good Morning!!
>
>     I'm repairing a series of scripts in PHP that use the 'datetime' of MySQL
> and converting them to Postgres. Question is this: The datetime format used
> in the script is 'YYYYMMDDHHMMSS' as a text string. Do I have to convert
> this to the format shown in the Postgres manual: '1999-01-08 04:05:06' for
> Postgres to accept the value or can I just pass an integer as
> 19990108040506 for the timestamp?

You need to pass it a valid timestamp, either in ISO format as you show, or
European/US/... standards (depending on your settings). There's a full list
of formats in the data-types section of the manuals.

--
  Richard Huxton
  Archonet Ltd

pgsql-general by date:

Previous
From: "scott.marlowe"
Date:
Subject: Re: Newbie timestamp question
Next
From: Bruno Wolff III
Date:
Subject: Re: Newbie timestamp question