Re: [psycopg] #203: Timestamps "BC" raise "ValueError: second must be in 0..59"
"psycopg" <fog-NGVKUo/i/[email protected]>
| Newsgroups | gmane.comp.python.db.psycopg.devel |
|---|---|
| Message-ID | <[email protected]> |
#203: Timestamps "BC" raise "ValueError: second must be in 0..59"
-----------------------+----------------------------------------------------
Reporter: hdiogenes | Owner: fog
Type: defect | Status: new
Priority: normal | Milestone: PSYCOPG 2.0.6
Component: psycopg2 | Version: 2.0.2
Severity: normal | Resolution:
Keywords: |
-----------------------+----------------------------------------------------
Comment (by jamesh):
The Python datetime type does not seem to support BC dates:
{{{
>>> from datetime import date, timedelta
>>> dt = date(1,1,1)
>>> dt.isoformat()
'0001-01-01'
>>> dt - timedelta(days=1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OverflowError: date value out of range
}}}
So it isn't just a simple matter of adding code to interpret the "BC"
suffix.
--
Ticket URL: <http://initd.org/tracker/psycopg/ticket/203#comment:1>
psycopg <http://initd.org/>
psycopg