| От | Mike Mascari |
|---|---|
| Тема | Re: strftime |
| Дата | |
| Msg-id | 3F45A052.3050302@mascari.com обсуждение исходный текст |
| Ответ на | strftime ("Egor Shipovalov" <pgsql_list@eonline.ru>) |
| Список | pgsql-general |
Egor Shipovalov wrote: > I'm wondering how hard will it be to implement POSIX strftime function and > what's the best way to go about it? I hooked up similar functions to MySQL > in the past and all it took was little modification to example C code, > compiling it as a shared library and issuing one SQL statement. What's the > PostgreSQL's way to do it? You can write wrappers for any C function: http://www.postgresql.org/docs/7.3/static/xfunc-c.html But PostgreSQL may be able to already to what you want using TO_CHAR(): http://www.postgresql.org/docs/7.3/static/functions-formatting.html Hope that helps, Mike Mascari mascarm@mascari.com
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера