      ... )
      >>> from django.utils import timezone
      >>> import pytz
      >>> start1 = datetime(2014, 6, 15, 14, 30, 50, 321, tzinfo=timezone.utc)
      >>> Experiment.objects.create(start_time=start1, start_date=start1.date())
      >>> melb = pytz.timezone('Australia/Melbourne')
      >>> Experiment.objects.annotate(
      ...     date=TruncDate('start_time'),
      ...     day=TruncDay('start_time', tzinfo=melb),
      ...     hour=TruncHour('start_time', tzinfo=melb),
 
</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     >>> 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     ...     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     ...    month=TruncMonth('start_time', tzinfo=melb)).values('month').annotate(
 </s> add     ...    month=TruncMonth('start_datetime', tzinfo=melb)).values('month').annotate( </s> remove     >>> Experiment.objects.create(start_time=datetime(2015, 6, 15, 14, 30, 50, 321))
    >>> Experiment.objects.create(start_time=datetime(2015, 6, 15, 14, 40, 2, 123))
    >>> Experiment.objects.create(start_time=datetime(2015, 12, 25, 10, 5, 27, 999))
 </s> add     >>> Experiment.objects.create(start_datetime=datetime(2015, 6, 15, 14, 30, 50, 321))
    >>> Experiment.objects.create(start_datetime=datetime(2015, 6, 15, 14, 40, 2, 123))
    >>> Experiment.objects.create(start_datetime=datetime(2015, 12, 25, 10, 5, 27, 999))
    >>> Experiment.objects.create(start_datetime=start1, start_date=start1.date())
      ... )
      >>> from django.utils import timezone
      >>> import pytz
      >>> start1 = datetime(2014, 6, 15, 14, 30, 50, 321, tzinfo=timezone.utc)
    >>> Experiment.objects.create(start_datetime=start1, start_date=start1.date())
      >>> melb = pytz.timezone('Australia/Melbourne')
      >>> Experiment.objects.annotate(
      ...     date=TruncDate('start_time'),
      ...     day=TruncDay('start_time', tzinfo=melb),
      ...     hour=TruncHour('start_time', tzinfo=melb),
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