Am 24.12.2013 08:11, schrieb Laurence Rowe:
Postgres' INTERVAL supports deltas of quantities other than days, +1 month may mean 28/29/30/31 days depending on the month. From http://stackoverflow.com/questions/546321/how-do-i-calculate-the-date-six-months-from-the-current-date-using-the-datetime, dateutil has support for a richer relativedelta type andthis can configure it on the psycopg2 level: https://pypi.python.org/pypi/psycopg2-dateutils
Exactly, that's it. The stackoverflow discussion was very instructive, thank you! I'll try out psycopg2-dateutils.
Greetings, Sibylle -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at http://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/groups/opt_out.