Re: Working with dates before 4713 BC

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Working with dates before 4713 BC
Дата
Msg-id 6047.1210036644@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Working with dates before 4713 BC  (Ryan Wallace <rywall@interchange.ubc.ca>)
Ответы Re: Working with dates before 4713 BC  ("Phillip Smith" <phillip.smith@weatherbeeta.com.au>)
Список pgsql-sql
Ryan Wallace <rywall@interchange.ubc.ca> writes:
> I am building an application which requires the storage of dates relating to
> the creation of archaeological items. The problem I am facing is that
> although most of the dates are working fine, some of the items were created
> before the beginning of recorded history (4713 BC). 

The existing date/timestamp code has no chance of dealing with that,
I'm afraid --- I doubt the code is likely to work for negative Julian
dates.  Its underlying assumptions are pretty much fantasy anyway,
that far back.  Nobody was using the Gregorian calendar then ...

Do you really need microsecond, or even day, resolution in your dates?
I wonder if it'd not be good enough to store the year as an integer.
        regards, tom lane


В списке pgsql-sql по дате отправления:

Предыдущее
От: Ryan Wallace
Дата:
Сообщение: Working with dates before 4713 BC
Следующее
От: "Phillip Smith"
Дата:
Сообщение: Re: Working with dates before 4713 BC