| От | Rob Sargent |
|---|---|
| Тема | Re: localtime(0) |
| Дата | |
| Msg-id | 54A1833D.1080102@gmail.com обсуждение исходный текст |
| Ответ на | localtime(0) (Suresh Raja <suresh.rajaabc@gmail.com>) |
| Список | pgsql-general |
http://www.postgresql.org/docs/9.3/static/functions-datetime.html#FUNCTIONS-DATETIME-CURRENTHi:I'm using localtime(0) in various part of the function, and updating table with the time. I use localtime at places like the start of the function and at the end of the function. The function takes about 5 mins to run,. The issue is that the function always print the same time for both start and end. I'm trying to capture the time at various point of the function, but it always print the same time. Is localtime(0) is not correct.Thanks,-SR
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера