using 'zoneinfo' to manipulate dates ...

Поиск
Список
Период
Сортировка
От Marc G. Fournier
Тема using 'zoneinfo' to manipulate dates ...
Дата
Msg-id 20050626001729.G993@ganymede.hub.org
обсуждение исходный текст
Ответы Re: using 'zoneinfo' to manipulate dates ...
Список pgsql-sql
Does anyone have a 'table of timezones' that could be used to "localize" 
as part of a query?

For instance, something like:

SELECT date  FROM table WHERE ( time || ' ' || ( SELECT timezone                            FROM zones
        WHERE id = table.timezone )) = '2004-12-12';
 

Something like this, but that works:

# select ( now() || ' ' || 'PST8PDT' )::timestamp;
ERROR:  invalid input syntax for type timestamp: "2005-06-26 00:23:29.789703-03 PST8PDT"



----
Marc G. Fournier           Hub.Org Networking Services (http://www.hub.org)
Email: scrappy@hub.org           Yahoo!: yscrappy              ICQ: 7615664


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

Предыдущее
От: Jan Wieck
Дата:
Сообщение: Re: people who buy A, also buy C, D, E
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: using 'zoneinfo' to manipulate dates ...