In addition to using `func.*` methods, there's also the `extract` method 
that works (in most databases) specifically on datetime objects.  

sqlalchemy.sql.expression.extract(*field*, 
*expr*)<http://docs.sqlalchemy.org/en/rel_0_8/core/sqlelement.html?highlight=extract#sqlalchemy.sql.expression.extract>

in any event, the general approach is the same -- the query should tell the 
database to turn a datetime into just a time, and compare that value to 
your filter.

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to