Did I find the right examples for you? yes no

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

src/r/o/rooibos-HEAD/rooibos/contrib/sql_server/pyodbc/query.py   rooibos(Download)
                value = value.date() # extract date
            elif field and field.get_internal_type() == 'TimeField' or (isinstance(value, datetime) and value.year == 1900 and value.month == value.day == 1):
                value = value.time() # extract time
            # Some cases (for example when select_related() is used) aren't
            # caught by the DateField case above and date fields arrive from

src/r/o/rooibos-HEAD/rooibos/contrib/sql_server/pyodbc/operations.py   rooibos(Download)
            value = value.date() # extract date
        elif field and field.get_internal_type() == 'TimeField' or (isinstance(value, datetime.datetime) and value.year == 1900 and value.month == value.day == 1):
            value = value.time() # extract time
        # Some cases (for example when select_related() is used) aren't
        # caught by the DateField case above and date fields arrive from

src/p/y/pyodbcOpenEdge-1.0/OpenEdge/pyodbc/operations.py   pyodbcOpenEdge(Download)
            value = value.date() # extract date
        elif field and field.get_internal_type() == 'TimeField' or (isinstance(value, datetime.datetime) and value.year == 1900 and value.month == value.day == 1):
            value = value.time() # extract time
        # Some cases (for example when select_related() is used) aren't
        # caught by the DateField case above and date fields arrive from

src/d/j/django-pyodbc-azure-1.1.5/sql_server/pyodbc/operations.py   django-pyodbc-azure(Download)
            if self.connection.use_legacy_datetime:
                if (isinstance(value, datetime.datetime) and value.year == 1900 and value.month == value.day == 1):
                    value = value.time() # extract time
        # Some cases (for example when select_related() is used) aren't
        # caught by the DateField case above and date fields arrive from

src/d/j/django-pyodbc-0.2.4/django_pyodbc/operations.py   django-pyodbc(Download)
            value = value.date() # extract date
        elif field and field.get_internal_type() == 'TimeField' or (isinstance(value, datetime.datetime) and value.year == 1900 and value.month == value.day == 1):
            value = value.time() # extract time
        # Some cases (for example when select_related() is used) aren't
        # caught by the DateField case above and date fields arrive from

src/d/j/django-pyodbc-HEAD/django_pyodbc/operations.py   django-pyodbc(Download)
            value = value.date() # extract date
        elif field and field.get_internal_type() == 'TimeField' or (isinstance(value, datetime.datetime) and value.year == 1900 and value.month == value.day == 1):
            value = value.time() # extract time
        # Some cases (for example when select_related() is used) aren't
        # caught by the DateField case above and date fields arrive from

src/o/d/odelab-HEAD/odelab/solver.py   odelab(Download)
	def simulating(self):
		self._start_time = time.time()
		with self.open_store(write=True) as events:
			yield events
			end_time = time.time()