Re: Model filter on date ranges

2011-05-24 Thread sushanth Reddy
Thank you for the response,Let me give a try and let you know. Thanks & Regards sushanth reddy On Tue, May 24, 2011 at 12:30 PM, Ori Livneh wrote: > Check out the python-dateutil module > (not in the standard lib, but available via pip and easy_install). It

Re: Model filter on date ranges

2011-05-24 Thread Ori Livneh
Check out the python-dateutil module (not in the standard lib, but available via pip and easy_install). It makes calculating time deltas easy. Anyways, try something like this: #!/usr/bin/env python from datetime import datetime from dateutil.relativedelta impor