Interval Type Mapping
Francois Girault <francois.girault-ZQ1FT/[email protected]> Thu, 18 Dec 2003 18:29:10 +0100
| Newsgroups | gmane.comp.python.db.pypgsql.user |
|---|---|
| Organization | Clarisys Informatique |
| Message-ID | <[email protected]> |
Hi all, I'm using interval data type in postgres. pypgsql returns a DateTimeDelta instance when retrieving such values. Is there any plan to use RelativeDateTime, cause interval <-> DateTimeDelta is destructive on client side. With DateTimeDelta, years can't be specified and all years haven't 365 days. Even saying a year is 365.2425 days, working with months is worse :( Any turn-around ? Or, if I want to do it myself, is interval2DateTimeDelta the only place to look at for returning RelativeDateTime instead of DateTimeDelta ? Thanks for any help. François ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click