a</span><span class="p">):</span>
            <span class="n">y</span> <span class="o">=</span> <span class="n">TimeDelta</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="s1">&#39;datetime&#39;</span><span class="p">)</span>

        <span class="c1"># create TimeRange in case of (start_date, delta)</span>
        <span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n"