n><span class="n">_end_time</span> <span class="o">=</span> <span class="n">x</span>
            <span class="k">return</span>

        <span class="c1"># otherwise, b is something date-like</span>
        <span class="n">y</span> <span class="o">=</span> <span class="n">parse_time</span><span class="p">(</span><span class="n">y</span><span class="p">,</span> <span class="nb">format</span><span class="o">=</span><span class="nb">format</span><span class="p">)</span>
        <span class="k">if</span> <span c