<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 1, 2016 at 2:02 PM, Michel Desmoulin <span dir="ltr"><<a href="mailto:desmoulinmichel@gmail.com" target="_blank">desmoulinmichel@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div id=":1lx" class="" style="overflow:hidden">As with my previous email about __main__ for random, uuid and os, I wish<br>
to suggest a similar __main__ for datetime. The target audience may not<br>
be the same, so I'm making it a difference proposal.<br>
<br>
E.G:<br>
<br>
python -m datetime now => print(str(datetime.datetime.now())<br>
python -m datetime utcnow => print(str(datetime.datetime.utcnow())</div></blockquote></div><br>+1</div><div class="gmail_extra"><br></div><div class="gmail_extra">In fact, I would not mind seeing a fairly complete GNU date utility [1] reimplementation as datetime.__main__.</div><div class="gmail_extra"><br></div><div class="gmail_extra">[1] <a href="http://www.gnu.org/software/coreutils/manual/html_node/date-invocation.html#date-invocation">http://www.gnu.org/software/coreutils/manual/html_node/date-invocation.html#date-invocation</a></div></div>