| От | Morgan Curley |
|---|---|
| Тема | converting timestamps to ints |
| Дата | |
| Msg-id | 4.3.2.7.2.20010802232942.026cf950@e4media.com обсуждение исходный текст |
| Ответы |
Re: converting timestamps to ints
|
| Список | pgsql-sql |
I am writing an app that will need to do some calcs based on differences between when a record is first inserted and when it is last updated. I have seen a lot of column::data-type in this list but can't find the relevant section in the documentation. Can anyone point me in the right direction? Currently I am using some code I have seen earlier on this list select username, extract( epoch from update_timestamp) - extract( epoch from create_timestamp) as time_diff from users; Is there a simpler way to do this? Thanks, Morgan
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера