Splitting Timestamps

Поиск
Список
Период
Сортировка
От Chris Hoover
Тема Splitting Timestamps
Дата
Msg-id 1d219a6f0607250954u55d0edbaq93b80c3cbd052451@mail.gmail.com
обсуждение исходный текст
Ответы Re: Splitting Timestamps  (Alvaro Herrera <alvherre@commandprompt.com>)
Re: Splitting Timestamps  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Re: Splitting Timestamps  (Reece Hart <reece@harts.net>)
Список pgsql-general
I have several columns in my database that are timestamps.  My developers are asking me how to split the timestamp so that they can look at either the date or at the time portion.

I know I can do a select to_date(now(),'yyyy-mm-dd') and it will return the date.  However, how do I get the time?  Also, is this the proper way to get the date portion of a timestamp?

Thanks,

Chris

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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: CASE statement and SETOF values
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Splitting Timestamps