| От | garry saddington |
|---|---|
| Тема | time type strange behaviour |
| Дата | |
| Msg-id | 1160495101.13498.8.camel@localhost обсуждение исходный текст |
| Ответы |
Re: time type strange behaviour
|
| Список | pgsql-general |
I have the following table def. CREATE TABLE periods ( periodid serial NOT NULL, periodnumber integer NOT NULL, periodstart time with time zone, periodend time with time zone, PRIMARY KEY (periodid) ) This definition does not insert time zone. If I use without time zone then the time zone is inserted. If I input a time like: 01:05 AM then on select I get something like: 1970/01/01 01:05:00:00. If I use without time zone, then I get the correct date,time and time zone. The postgres version is 8.1 and I am using psycopg through Zope. I have date-style set to 'iso dmy' What I want is to just have the time inserted. Any ideas? regards garry
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера