Re: date calculation

Поиск
Список
Период
Сортировка
От Tomasz Myrta
Тема Re: date calculation
Дата
Msg-id 3F45BB45.80704@klaster.net
обсуждение исходный текст
Ответ на date calculation  (MichaelHoeller@t-online.de)
Ответы Re: date calculation
Список pgsql-sql
> Hi there,
> 
> I have a problem calculating a date. A field carries the date as passed
> seconds since Jan 1st 1970.
> How can I get the date as dd.mm.yyyy out of this??

cast('1970-1-1' as timestamp)+cast(your_ticks || ' seconds' as interval)

Does anyone know better way to cast it?

Regards,
Tomasz Myrta



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

Предыдущее
От: Bertrand Petit
Дата:
Сообщение: Re: "SELECT IN" Still Broken in 7.4b
Следующее
От: Rajesh Kumar Mallah
Дата:
Сообщение: Joined deletes but one table being a subquery.