How to represent dates BC

Laszlo Nagy gandalf at shopzeus.com
Tue Jul 24 07:52:37 EDT 2012


On 2012-07-24 12:29, Christian Heimes wrote:
> Am 24.07.2012 11:55, schrieb Laszlo Nagy:
>> What is the good representation here? Should I implement my own date
>> type? (I wouldn't want to.)
> JDN [1] is a commonly used format for wide ranges of dates. I've used it
> in the past to refer to days BC. PyPI offers a Python module [2] that
> looks well written and documented.
It was really useful, thanks. I also figured out how to convert julian 
date to timestamp in postgresql:

|to_date(2455452::text,  'J')
|

So it is possible to create incides.

    L

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120724/a3d4adf5/attachment.html>


More information about the Python-list mailing list