Re: psycopg2: parsing timestamps with odd time zones

Karsten Hilbert <[email protected]> Wed, 19 May 2010 22:24:17 +0200
Newsgroups gmane.comp.python.db.psycopg.devel
Message-ID <[email protected]>
On Wed, May 19, 2010 at 10:06:30PM +0200, Federico Di Gregorio wrote:

> >> > instead of in testing? I'd like to do the best thing, but if pytz
> >> > doesn't use seconds in the tz either, I guess we can't do more. We
> >> > could round instead of truncate, so the error would be +/- 30 secs
> >> > instead of 60 and we'd be consistent with pytz.
> > Makes sense.
> 
> I never investigated this issue very much, just accepted the patches.
> Sincerely I'd better like to introduce a trascurable error (< 1m),
> document it and send TSTZ_W_SECS to the grave. For all practical
> purpouses it is a negligible error and if a user NEEDS such precision
> she can write her own typecaster.

Fine with me !  :-)

Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346