The events to filter. The list is not changed.
The moment to treat as now, as epoch seconds.
The window's last second, as horizonFor gives it for now. A reader that already worked it out passes the same value, so its walk and this filter stop at the same second.
A new list of the events in the window, sorted by start.
Keeps the events the agenda shows, soonest first.
An event stays while it has not finished and its start is inside the window. Testing against its end means a meeting in progress still counts as current.