Open MassD opened 9 years ago
Hi
I have a field named log_time, it is a standard datetime field, like 2014-10-06 10:06:07.405.
log_time
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.
s.query(log_time__range=(start_dt, end_dt))
start_dt and end_dt are python datetime type.
start_dt
end_dt
I also transformed them to string, and try again, still no luck.
What is the proper way to query a datetime range?
Hi
I have a field named
log_time
, it is a standard datetime field, like2014-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
andend_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?