def day_display(year, month, all_month_events, day):
<EOL>count = CountHandler(year, month, all_month_events).get_count()<EOL>pks = [x[<NUM_LIT:1>] for x in count[day]]  <EOL>day_events = list(Event.objects.filter(pk__in=pks).order_by(<EOL>'<STR_LIT>').prefetch_related('<STR_LIT>'))<EOL>day_events.sort(key=lambda x: x.l_start_date.hour)<EOL>return day_events<EOL>
Returns the events that occur on the given day.
Works by getting all occurrences for the month, then drilling
down to only those occurring on the given day.