      ...     minute=ExtractMinute('start_time'),
      ...     second=ExtractSecond('start_time'),
      ... ).values(
      ...     'year', 'month', 'day', 'weekday', 'hour', 'minute', 'second',
      ... ).get(end_time__year=ExtractYear('start_time'))
      {'year': 2015, 'month': 6, 'day': 15, 'weekday': 2, 'hour': 23, 'minute': 30, 'second': 1}
  
  When :setting:`USE_TZ` is ``True`` then datetimes are stored in the database
  in UTC. If a different timezone is active in Django, the datetime is converted
  to that timezone before the value is extracted. The example below converts to
 
</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     ...        end_time__year=ExtractYear('start_time'),
 </s> add     ...        end_datetime__year=ExtractYear('start_datetime'), </s> remove     ...     date=TruncDate('start_time'),
    ...     day=TruncDay('start_time', tzinfo=melb),
    ...     hour=TruncHour('start_time', tzinfo=melb),
    ...     minute=TruncMinute('start_time'),
    ...     second=TruncSecond('start_time'),
 </s> add     ...     date=TruncDate('start_datetime'),
    ...     day=TruncDay('start_datetime', tzinfo=melb),
    ...     hour=TruncHour('start_datetime', tzinfo=melb),
    ...     minute=TruncMinute('start_datetime'),
    ...     second=TruncSecond('start_datetime'), </s> remove     ...    start_year=Extract('start_time', 'year')).get()
 </s> add     ...    start_year=Extract('start_datetime', 'year')).get() </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())
    ... ).get(end_datetime__year=ExtractYear('start_datetime'))
      ...     minute=ExtractMinute('start_time'),
      ...     second=ExtractSecond('start_time'),
      ... ).values(
      ...     'year', 'month', 'day', 'weekday', 'hour', 'minute', 'second',
    ... ).get(end_datetime__year=ExtractYear('start_datetime'))
      {'year': 2015, 'month': 6, 'day': 15, 'weekday': 2, 'hour': 23, 'minute': 30, 'second': 1}
  
  When :setting:`USE_TZ` is ``True`` then datetimes are stored in the database
  in UTC. If a different timezone is active in Django, the datetime is converted
  to that timezone before the value is extracted. The example below converts to
keep keep keep keep replace keep keep keep keep keep
 Refs #25774 -- Adjusted datetime database function docs field names. 
docs/ref/models/database-functions.txt