<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Sat, Apr 2, 2016 at 1:49 AM Alexander Belopolsky <<a href="mailto:alexander.belopolsky@gmail.com">alexander.belopolsky@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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 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></div></div><div dir="ltr"><div class="gmail_extra">+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" target="_blank">http://www.gnu.org/software/coreutils/manual/html_node/date-invocation.html#date-invocation</a></div></div></blockquote><div><br></div><div>Seems like Microsoft is solving this problem for you.</div><div><a href="http://www.hanselman.com/blog/DevelopersCanRunBashShellAndUsermodeUbuntuLinuxBinariesOnWindows10.aspx">http://www.hanselman.com/blog/DevelopersCanRunBashShellAndUsermodeUbuntuLinuxBinariesOnWindows10.aspx</a><br></div></div></div>