Re: Newbie timestamp question

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Newbie timestamp question
Дата
Msg-id 200403171909.20207.dev@archonet.com
обсуждение исходный текст
Ответ на Newbie timestamp question  ("Robin 'Sparky' Kopetzky" <sparkyk@blackmesa-isp.net>)
Ответы Re: Newbie timestamp question
Список 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 по дате отправления:

Предыдущее
От: "scott.marlowe"
Дата:
Сообщение: Re: Newbie timestamp question
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: Newbie timestamp question