Re: Unix time stamp function?

Поиск
Список
Период
Сортировка
От jdassen@cistron.nl (J.H.M. Dassen (Ray))
Тема Re: Unix time stamp function?
Дата
Msg-id slrn9ieqnd.psa.jdassen@odin.cistron-office.nl
обсуждение исходный текст
Ответ на Unix time stamp function?  (Steve Micallef <stevenm@ot.com.au>)
Список pgsql-general
Steve Micallef <stevenm@ot.com.au> wrote:
> I store Unix time stamps (seconds since Jan 1 1970) in my database. I was
> hoping there was an SQL/PostgreSQL function for converting a unix time
> stamp into a readable date/time string?

You can  use something like
    to_char(timestamp(foo), 'DD-MM-YYYY HH24:MI:SS')

HTH,
Ray
--
USDoJ/Judge Jackson: "Microsoft has performed an illegal operation and will
be shut down."
    James Turinsky in alt.sysadmin.recovery

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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Re: very big problem with NULL
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Re: very big problem with NULL