Re: 'NOW' in UTC with no timezone

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: 'NOW' in UTC with no timezone
Дата
Msg-id 28230.1097558497@sss.pgh.pa.us
обсуждение исходный текст
Ответ на 'NOW' in UTC with no timezone  (Stuart Bishop <stuart@stuartbishop.net>)
Ответы Re: 'NOW' in UTC with no timezone
Re: 'NOW' in UTC with no timezone
Список pgsql-general
Stuart Bishop <stuart@stuartbishop.net> writes:
> I'm trying to determine the best way of saying 'The current time in UTC
> with no time zone information'.

Isn't that a contradiction in terms?

I *think* maybe what you want is to SET TIMEZONE = 'UTC' and then
stop worrying about it.  But anyone who is worried about timezones
and yet is storing his data in timestamp-without-time-zone columns
probably needs to reconsider exactly what his data represents.
What is it that you actually want to store, and how do you want
it presented?

            regards, tom lane

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

Предыдущее
От: "Eric D. Nielsen"
Дата:
Сообщение: Need some advice on appropriate PL strategy...
Следующее
От: Greg Stark
Дата:
Сообщение: Re: Need some advice on appropriate PL strategy...