<li><strong>Use <codeclass="python hljs"><spanclass="hljs-string">'<D/DT>.weekday()'</span></code> to get the day of the week (Mon == 0).</strong></li>
<li><strong><codeclass="python hljs"><spanclass="hljs-string">'fold=1'</span></code> means second pass in case of time jumping back for one hour.</strong></li>
<li><strong><codeclass="apache hljs"><codeclass="python language-python hljs"><spanclass="hljs-string">'<DT> = resolve_imaginary(<DT>)'</span></code></code> fixes DTs that fall into missing hour.</strong></li>
<li><strong><codeclass="python hljs"><spanclass="hljs-string">'<DTa> = resolve_imaginary(<DTa>)'</span></code> fixes DTs that fall into missing hour.</strong></li>
</ul>
<div><h3id="now">Now</h3><pre><codeclass="python language-python hljs"><D/DTn> = D/DT.today() <spanclass="hljs-comment"># Current local date or naive datetime.</span>
<DTn> = DT.utcnow() <spanclass="hljs-comment"># Naive datetime from current UTC time.</span>
<li><strong>In CPython recursion depth is limited to 1000 by default. To increase it use <codeclass="python hljs"><spanclass="hljs-string">'sys.setrecursionlimit(<depth>)'</span></code>.</strong></li>
<li><strong>CPython interpreter limits recursion depth to 1000 by default. To increase it use <codeclass="python hljs"><spanclass="hljs-string">'sys.setrecursionlimit(<depth>)'</span></code>.</strong></li>
</ul>
<div><h3id="parametrizeddecorator">Parametrized Decorator</h3><p><strong>A decorator that accepts arguments and returns a normal decorator that accepts a function.</strong></p><pre><codeclass="python language-python hljs"><spanclass="hljs-keyword">from</span> functools <spanclass="hljs-keyword">import</span> wraps
xxxxxxxxxx