Re: timestamp (military) at time zone without the suffix

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: timestamp (military) at time zone without the suffix
Дата
Msg-id CAKFQuwY8Z-vnPMRncLu+V+byjVi7a3pHs1p=0kjQQ74cmBmsgg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: timestamp (military) at time zone without the suffix  (David Gauthier <davegauthierpg@gmail.com>)
Ответы Re: timestamp (military) at time zone without the suffix
Список pgsql-general
On Wednesday, July 11, 2018, David Gauthier <davegauthierpg@gmail.com> wrote:
OK, the "to_char" gets rid of the timezone extension.  But the times still don't make sense. 

When I go to store this in a DB, I want to store the UTC time.  How d I do that ? 

Use the data type that represents exactly that, timestamptz.  Using the timestamp data type is generally not what you want even if you can get the manipulation logic figured out.

David J. 

В списке pgsql-general по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: timestamp (military) at time zone without the suffix
Следующее
От: Christopher Browne
Дата:
Сообщение: Re: Open Source tool to deploy/promote PostgreSQL DDL