Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/p/r/Products.ZCatalog-3.0.2/src/Products/PluginIndexes/DateRangeIndex/DateRangeIndex.py   Products.ZCatalog(Download)
        if isinstance(value, (str, datetime)):
            dt_obj = DateTime(value)
            value = dt_obj.millis() / 1000 / 60  # flatten to minutes
        elif isinstance(value, DateTime):
            value = value.millis() / 1000 / 60  # flatten to minutes

src/e/x/experimental.catalogqueryplan-3.2.8/experimental/catalogqueryplan/daterangeindex.py   experimental.catalogqueryplan(Download)
    if isinstance(value, (str, datetime)):
        dt_obj = DateTime(value)
        value = dt_obj.millis() / 1000 / 60 # flatten to minutes
    elif isinstance(value, DateTime):
        value = value.millis() / 1000 / 60 # flatten to minutes