   :type filter: list of datetime-like objects or None</span>
<span class="sd">        :return: A list of dates from start to end of the time range, with optional exclusion.</span>
<span class="sd">        :rtype: list of datetime-like objects</span>
<span class="sd">        &quot;&quot;&quot;</span>
        <span class="n">delta</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">end</span><span class="o">.</span><span class="n">to_datetime</span><span class=