<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Jun 4, 2018 at 3:21 PM, Paul Moore <span dir="ltr"><<a href="mailto:p.f.moore@gmail.com" target="_blank">p.f.moore@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> So maybe you could propose adding:<br>
><br>
> seconds<br>
> minutes<br>
> hours<br>
> days<br>
><br>
> to the datetime module, and then we could write:<br>
><br>
> 60*seconds == 1*minutes<br>
><br>
> Without any changes to the language at all.<br>
<br>
</span>This strikes me as more of a personal/team style issue, so probably<br>
fits better as local definitions in a project's "utilities" module.<br></blockquote><div><br></div><div>probably, yes -- that's why I'm not going to push for it. But the point is that we can "solve" this problem in Python by:</div><div><br></div><div>* Doing nothing, and letting people roll their own simiple solution</div><div><br></div><div>or</div><div><br></div><div>* Adding a few names to the datetime module</div><div><br></div><div>Which is a pretty small lift, at least compared to adding new literal syntax.</div><div><br></div><div>-CHB</div></div><div><br></div><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><br>Christopher Barker, Ph.D.<br>Oceanographer<br><br>Emergency Response Division<br>NOAA/NOS/OR&R            (206) 526-6959   voice<br>7600 Sand Point Way NE   (206) 526-6329   fax<br>Seattle, WA  98115       (206) 526-6317   main reception<br><br><a href="mailto:Chris.Barker@noaa.gov" target="_blank">Chris.Barker@noaa.gov</a></div>
</div></div>