Skip to content
This repository has been archived by the owner on Feb 20, 2019. It is now read-only.

How can I query time range #268

Open
MassD opened this issue Oct 14, 2014 · 0 comments
Open

How can I query time range #268

MassD opened this issue Oct 14, 2014 · 0 comments

Comments

@MassD
Copy link

MassD commented Oct 14, 2014

Hi

I have a field named log_time, it is a standard datetime field, like 2014-10-06 10:06:07.405.

I tried s.query(log_time__range=(start_dt, end_dt)), but it seems never got anything back.

start_dt and end_dt are python datetime type.

I also transformed them to string, and try again, still no luck.

What is the proper way to query a datetime range?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant