Did I find the right examples for you? yes no

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

src/r/o/rooibos-HEAD/rooibos/contrib/sql_server/pyodbc/query.py   rooibos(Download)
                return value
            elif field and field.get_internal_type() == 'DateField':
                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
            # to the datetime.date Python type).
            elif isinstance(value, datetime) and value.hour == value.minute == value.second == value.microsecond == 0:
                value = value.date()
            # Force floats to the correct type
            elif value is not None and field and field.get_internal_type() == 'FloatField':

src/r/o/rooibos-HEAD/rooibos/contrib/sql_server/pyodbc/operations.py   rooibos(Download)
            return value
        elif field and field.get_internal_type() == 'DateField':
            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
        # to the datetime.date Python type).
        elif isinstance(value, datetime.datetime) and value.hour == value.minute == value.second == value.microsecond == 0:
            value = value.date()
        # Force floats to the correct type
        elif value is not None and field and field.get_internal_type() == 'FloatField':

src/p/y/pyodbcOpenEdge-1.0/OpenEdge/pyodbc/operations.py   pyodbcOpenEdge(Download)
            return value
        elif field and field.get_internal_type() == 'DateField':
            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
        # to the datetime.date Python type).
        elif isinstance(value, datetime.datetime) and value.hour == value.minute == value.second == value.microsecond == 0:
            value = value.date()
        # Force floats to the correct type
        elif value is not None and field and field.get_internal_type() == 'FloatField':

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):
                    value = value.date() # extract date
        elif field and field.get_internal_type() == 'TimeField':
            if self.connection.use_legacy_datetime:
        elif isinstance(value, datetime.datetime) and value.hour == value.minute == value.second == value.microsecond == 0:
            if self.connection.use_legacy_datetime:
                value = value.date()
        # Force floats to the correct type
        elif field and field.get_internal_type() == 'FloatField':

src/d/j/django-pyodbc-0.2.4/django_pyodbc/operations.py   django-pyodbc(Download)
            return value
        elif field and field.get_internal_type() == 'DateField' and isinstance(value, datetime.datetime):
            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
        # to the datetime.date Python type).
        elif isinstance(value, datetime.datetime) and value.hour == value.minute == value.second == value.microsecond == 0:
            value = value.date()
        # Force floats to the correct type
        elif value is not None and field and field.get_internal_type() == 'FloatField':

src/d/j/django-pyodbc-HEAD/django_pyodbc/operations.py   django-pyodbc(Download)
            return value
        elif field and field.get_internal_type() == 'DateField' and isinstance(value, datetime.datetime):
            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
        # to the datetime.date Python type).
        elif isinstance(value, datetime.datetime) and value.hour == value.minute == value.second == value.microsecond == 0:
            value = value.date()
        # Force floats to the correct type
        elif value is not None and field and field.get_internal_type() == 'FloatField':