      ...        day=ExtractDay('start_time'),
      ...        weekday=ExtractWeekDay('start_time'),
      ...        hour=ExtractHour('start_time'),
      ...    ).values('day', 'weekday', 'hour').get(
      ...        end_time__year=ExtractYear('start_time'),
      ...    )
      {'day': 16, 'weekday': 3, 'hour': 9}
  
  Explicitly passing the timezone to the ``Extract`` function behaves in the same
  way, and takes priority over an active timezone::
 
</s> remove     ...        day=ExtractDay('start_time'),
    ...        weekday=ExtractWeekDay('start_time'),
    ...        hour=ExtractHour('start_time'),
 </s> add     ...        day=ExtractDay('start_datetime'),
    ...        weekday=ExtractWeekDay('start_datetime'),
    ...        hour=ExtractHour('start_datetime'), </s> remove     ...     end_time__year=ExtractYear('start_time'),
 </s> add     ...     end_datetime__year=ExtractYear('start_datetime'), </s> remove     ...     day=ExtractDay('start_time', tzinfo=melb),
    ...     weekday=ExtractWeekDay('start_time', tzinfo=melb),
    ...     hour=ExtractHour('start_time', tzinfo=melb),
 </s> add     ...     day=ExtractDay('start_datetime', tzinfo=melb),
    ...     weekday=ExtractWeekDay('start_datetime', tzinfo=melb),
    ...     hour=ExtractHour('start_datetime', tzinfo=melb), </s> remove     ... ).get(end_time__year=ExtractYear('start_time'))
 </s> add     ... ).get(end_datetime__year=ExtractYear('start_datetime')) </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'),
    ...        end_datetime__year=ExtractYear('start_datetime'),
      ...        day=ExtractDay('start_time'),
      ...        weekday=ExtractWeekDay('start_time'),
      ...        hour=ExtractHour('start_time'),
      ...    ).values('day', 'weekday', 'hour').get(
    ...        end_datetime__year=ExtractYear('start_datetime'),
      ...    )
      {'day': 16, 'weekday': 3, 'hour': 9}
  
  Explicitly passing the timezone to the ``Extract`` function behaves in the same
  way, and takes priority over an active timezone::
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