Re: Does anyone use TO_CHAR(INTERVAL)?
От | Tomasz Myrta |
---|---|
Тема | Re: Does anyone use TO_CHAR(INTERVAL)? |
Дата | |
Msg-id | 3E80AD07.5000005@klaster.net обсуждение исходный текст |
Ответ на | Does anyone use TO_CHAR(INTERVAL)? (Josh Berkus <josh@agliodbs.com>) |
Ответы |
Re: Does anyone use TO_CHAR(INTERVAL)?
|
Список | pgsql-sql |
Uz.ytkownik Josh Berkus napisa?: > Folks, > > We're discussing the behavior of the current "to_char(interval)" function on > HACKERS. Does anyone on this list use the current behavior? Please speak > up, as we're trying to figure out what backward compatibility needs to be > maintained. > > PLEASE NOTE: This is only to_char() for INTERVAL values, NOT for dates, > timestamp, or numeric! In my projects intervals are always related to some dates when displaying them, so I use to_char(date+interval). It looks it could be useful to display how much time is left for scheduling cases, but as I wrote few threads ago - displaying intervals longer than one month is useless without specific date. Anyway, maybe it should be left for future use, but without patterns related to date, or maybe with DDD only? Regards, Tomasz Myrta
В списке pgsql-sql по дате отправления: