Re: Timestamp docs weirdness

Поиск
Список
Период
Сортировка
От Marcus Börger
Тема Re: Timestamp docs weirdness
Дата
Msg-id 157823625906.20031022104127@marcus-boerger.de
обсуждение исходный текст
Ответ на Re: Timestamp docs weirdness  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Ответы Re: Timestamp docs weirdness  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Hello Christopher,

Wednesday, October 22, 2003, 10:21:02 AM, you wrote:

>>>What in the heck is 'zulu', 'allballs' or 'z'???
>> 
>> 
>> 'allballs' probably alludes to the visual appearance of '00:00:00'.  'z'
>> and 'zulu' should be time zones equivalent (or similar?) to UTC or GMT
>> ((US?) military jargon).

> But they don't work...

Only the combination of both doesn't work:
template1=# select 'allballs'::timetz;  timetz
-------------00:00:00+00
(1 row)

template1=# select '0:0:0 z'::timetz;  timetz
-------------00:00:00+00
(1 row)

template1=# select '0:0:0 zulu'::timetz;  timetz
-------------00:00:00+00
(1 row)

template1=# select 'allballs'::timetz;  timetz
-------------00:00:00+00
(1 row)

template1=# select 'allballs z'::timetz;
ERROR:  Bad time external representation 'allballs z'
template1=# select 'allballs zulu'::timetz;
ERROR:  Bad time external representation 'allballs zulu'

Your problem is using 'time' which doesn't know time zones.

-- 
Best regards,Marcus                            mailto:mail@marcus-boerger.de



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

Предыдущее
От: Hemanthakumar R Dondolu
Дата:
Сообщение: -:-about the nls files
Следующее
От: dedy setiawan
Дата:
Сообщение: help