know the day from timestamp..

Поиск
Список
Период
Сортировка
От Lee Kindness
Тема know the day from timestamp..
Дата
Msg-id 15744.36686.959994.74546@kelvin.csl.co.uk
обсуждение исходный текст
Ответ на know the day from timestamp..  (jerome <jerome@gmanmi.tv>)
Список pgsql-general
See:

 http://www.postgresql.org/idocs/index.php?functions-datetime.html#FUNCTIONS-DATETIME-EXTRACT

in particular for your example:

 SELECT EXTRACT(DOW FROM TIMESTAMP '2002-09-12 20:44:21');

Lee.

jerome writes:
 > is there a function that will say the day (monday... sunday) in numeric...
 >
 > input -- 2002-09-12 20:44:21+08 or just date -- 2002-09-12
 >
 > will output thursday or 4 just like the date command for the shell..

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

Предыдущее
От: jerome
Дата:
Сообщение: know the day from timestamp..
Следующее
От: Francisco J Reyes
Дата:
Сообщение: Re: pg_dumpall between Linux and FreeBSD.