      ... )
      >>> start_2015 = datetime(2015, 6, 15, 23, 30, 1, tzinfo=timezone.utc)
      >>> end_2015 = datetime(2015, 6, 16, 13, 11, 27, tzinfo=timezone.utc)
      >>> Experiment.objects.create(
      ...    start_time=start_2015, start_date=start_2015.date(),
      ...    end_time=end_2015, end_date=end_2015.date())
      >>> Experiment.objects.annotate(
      ...     year=ExtractYear('start_time'),
      ...     month=ExtractMonth('start_time'),
      ...     day=ExtractDay('start_time'),
      ...     weekday=ExtractWeekDay('start_time'),
 
</s> remove     ...    start_time=start_2015, start_date=start_2015.date(),
    ...    end_time=end_2015, end_date=end_2015.date())
 </s> add     ...    start_datetime=start_2015, start_date=start_2015.date(),
    ...    end_datetime=end_2015, end_date=end_2015.date()) </s> remove     ...     year=ExtractYear('start_time'),
    ...     month=ExtractMonth('start_time'),
    ...     day=ExtractDay('start_time'),
    ...     weekday=ExtractWeekDay('start_time'),
    ...     hour=ExtractHour('start_time'),
    ...     minute=ExtractMinute('start_time'),
    ...     second=ExtractSecond('start_time'),
 </s> add     ...     year=ExtractYear('start_datetime'),
    ...     month=ExtractMonth('start_datetime'),
    ...     day=ExtractDay('start_datetime'),
    ...     weekday=ExtractWeekDay('start_datetime'),
    ...     hour=ExtractHour('start_datetime'),
    ...     minute=ExtractMinute('start_datetime'),
    ...     second=ExtractSecond('start_datetime'), </s> remove     >>> Experiment.objects.create(start_time=start1, start_date=start1.date())
    >>> Experiment.objects.create(start_time=start2, start_date=start2.date())
    >>> Experiment.objects.create(start_time=start3, start_date=start3.date())
 </s> add     >>> Experiment.objects.create(start_datetime=start1, start_date=start1.date())
    >>> Experiment.objects.create(start_datetime=start2, start_date=start2.date())
    >>> Experiment.objects.create(start_datetime=start3, start_date=start3.date()) </s> remove     ...    start_time=start, start_date=start.date(),
    ...    end_time=end, end_date=end.date())
 </s> add     ...    start_datetime=start, start_date=start.date(),
    ...    end_datetime=end, end_date=end.date()) </s> remove     >>> Experiment.objects.create(start_time=start1, start_date=start1.date())
 </s> add     >>> Experiment.objects.create(start_datetime=start1, start_date=start1.date())
    ...    start_datetime=start_2015, start_date=start_2015.date(),
    ...    end_datetime=end_2015, end_date=end_2015.date())
      ... )
      >>> start_2015 = datetime(2015, 6, 15, 23, 30, 1, tzinfo=timezone.utc)
      >>> end_2015 = datetime(2015, 6, 16, 13, 11, 27, tzinfo=timezone.utc)
      >>> Experiment.objects.create(
    ...    start_datetime=start_2015, start_date=start_2015.date(),
    ...    end_datetime=end_2015, end_date=end_2015.date())
    ...    start_datetime=start_2015, start_date=start_2015.date(),
    ...    end_datetime=end_2015, end_date=end_2015.date())
      >>> Experiment.objects.annotate(
      ...     year=ExtractYear('start_time'),
      ...     month=ExtractMonth('start_time'),
      ...     day=ExtractDay('start_time'),
      ...     weekday=ExtractWeekDay('start_time'),
keep keep keep keep replace replace keep keep keep keep keep
 Refs #25774 -- Adjusted datetime database function docs field names. 
docs/ref/models/database-functions.txt