Re: to_timestamp alternatives

Поиск
Список
Период
Сортировка
От Jim Nasby
Тема Re: to_timestamp alternatives
Дата
Msg-id 568AFE8F.6000308@BlueTreble.com
обсуждение исходный текст
Ответ на Re: to_timestamp alternatives  (Alban Hertroys <haramrae@gmail.com>)
Список pgsql-general
On 1/1/16 7:15 AM, Alban Hertroys wrote:
>> Since you're dealing with GPS data and presumably have lat/long, it shouldn't be hard to do this dynamically either,
eitherby just blindly dividing longitude by 15 or using actual timezone shape polygons and @> or <@. 
> That would be a bad idea for global data, since not all time zones are full hours apart, or have the same (if any)
DSTchange-over dates. For example, India is currently at UTC+05:30, probably because they wrapped the entire country in
thesame TZ after their independence. 

The original desire was to ignore DST, hence my suggestion. Normally
you'd want to figure out the correct TZ for the lat/long.
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com


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

Предыдущее
От: Ted Toth
Дата:
Сообщение: Re: RLS 9.5rc1 configuration changes?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: RLS 9.5rc1 configuration changes?