| От | Christian Ullrich |
|---|---|
| Тема | Julian day calculation is wrong (strictly speaking) |
| Дата | |
| Msg-id | 20020805123935.GC2477@christian.chrullrich.de обсуждение исходный текст |
| Список | pgsql-general |
Hello! I'm using the Julian Day Count for storage of dates in my application, because I don't need sub-day resolution and PostgreSQL makes my life much simpler because it can convert to and from JD by itself. However, I've found that the method which is used to generate the Julian Day for a given date in the Gregorian Calendar is somewhat wrong: It returns always the number of the JD that starts at noon on a given date, disregarding the time of day. Now, I'm not going to complain too loudly about this, because it's just what I need -- I'm simplifying the calculations in my app in just the same way. But it's still a nonstandard behaviour which could be a problem to some people. I don't know what would be the best way to fix this (or if it needs to be fixed at all); I just wanted to remind you of this. Feel free to disregard this message. -- Christian Ullrich Registrierter Linux-User #125183 "Deliver."
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера