Re: timestamp with definable accuracy, was: Re: empty text
В списке pgsql-general по дате отправления:
| От | Alban Hertroys |
|---|---|
| Тема | Re: timestamp with definable accuracy, was: Re: empty text |
| Дата | |
| Msg-id | 44B36B9D.1000504@magproductions.nl обсуждение |
| Ответ на | timestamp with definable accuracy, was: Re: empty text fields (Karsten Hilbert <Karsten.Hilbert@gmx.net>) |
| Список | pgsql-general |
Karsten Hilbert wrote:
> Just for your information:
>
> In our Python implementation of a fuzzy timestamp type we
> used accuracy values ranging from 1 to 7 denoting the
> "precision" of a complete timestamp definition:
>
> 7 - full subsecond accuracy (7 "digits" precision)
> 6 - seconds
> 5 - minutes
> 4 - hours
> 3 - days
> 2 - months
> 1 - years
This is getting off topic, but let me add that IMO you chose the wrong
direction.
Your timestamps won't get any more accurate than seconds (your highest
value), but it could get less accurate. What are you going to use for
ranges larger than a year? 0? -1? -2? You locked yourself out...
--
Alban Hertroys
alban@magproductions.nl
magproductions b.v.
T: ++31(0)534346874
F: ++31(0)534346876
M:
I: www.magproductions.nl
A: Postbus 416
7500 AK Enschede
// Integrate Your World //
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера