| От | Robert Treat |
|---|---|
| Тема | Re: Time manipulation.. |
| Дата | |
| Msg-id | 1037133875.27219.53.camel@camel обсуждение исходный текст |
| Ответ на | Time manipulation.. ("Williams, Travis L, NPONS" <tlw@att.com>) |
| Список | pgsql-general |
On Tue, 2002-11-12 at 14:35, Williams, Travis L, NPONS wrote: > If I have a date/time column using timestamp.. how can I manipulate the date/time easily.. like take the date/time andadd 7 days to it and get the correct date.. or subtract 5 days.. or anything like that.. I can do it all in perl (whichI have done in the past).. but I hate dealing with month/year roll overs.. > > Travis > Well, you can easily do things like select now() + '7 days'::interval; or select now() - '5 days'::interval; and if you need just a part of the time use the date_part() function. check the docs for more info and other suggestions. Robert Treat
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера