| От | Alban Hertroys |
|---|---|
| Тема | Re: Syntax for converting double to a timestamp |
| Дата | |
| Msg-id | 44FBEAAC.5010908@magproductions.nl обсуждение |
| Ответ на | Re: Syntax for converting double to a timestamp (Peter Eisentraut <peter_e@gmx.net>) |
| Ответы |
Re: Syntax for converting double to a timestamp
|
| Список | pgsql-general |
Peter Eisentraut wrote:
> Frank Church wrote:
>> error: cannot cast tupe double precision to timestamp without time
>> zone
>>
>> What is the right syntax?
>
> It's not clear what the meaning of a double precision as a timestamp
> would be. How about you make that explicit:
>
> "timestamp" * interval '1 second' + timestamp '1900-01-01 00:00:00'
There's also 'EPOCH', which is shorter and more explicit.
timestamp 'EPOCH" + "timestamp" * interval '1 second'
--
Alban Hertroys
alban@magproductions.nl
magproductions b.v.
T: ++31(0)534346874
F: ++31(0)534346876
M:
I: www.magproductions.nl
A: Postbus 416
7500 AK Enschede
// Integrate Your World //
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера