If you're going to be searching based on the difference between date1 and 
date2 why not just include the difference in the DB itself with a computed 
field? (http://www.web2py.com/book/default/chapter/06#Computed-Fields)

Reply via email to