interval output format available that removes ambiguity ?
В списке pgsql-general по дате отправления:
| От | Karsten Hilbert |
|---|---|
| Тема | interval output format available that removes ambiguity ? |
| Дата | |
| Msg-id | 20040504122437.D650@hermes.hilbert.loc обсуждение |
| Ответы |
Re: interval output format available that removes ambiguity ?
|
| Список | pgsql-general |
I have the need to output intervals (ages in this case). PostgreSQL takes great care to handle months correctly (eg take into account varying months lengths). This is only possible if either end point or start point of an interval are known. For post processing some of the ambiguity of what "2 mons" means would be removed if "61 days" was returned. Is there a way to tell PostgreSQL to return that type of interval (eg use weeks, days, hours, minutes, seconds, ... but not months and perhaps not even years [leap years, etc]) ? to_char(interval, text) doesn't work as it is applied after the fact. Karsten -- GPG key ID E4071346 @ wwwkeys.pgp.net E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера