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

How can I query time range #268

@MassD

Description

@MassD

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions