<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2014-12-11 22:00 GMT+01:00 MRAB <span dir="ltr"><<a href="mailto:python@mrabarnett.plus.com" target="_blank">python@mrabarnett.plus.com</a>></span>:<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"><span class="">On 2014-12-11 18:33, Skip Montanaro wrote:<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"><br>
there are likely to be situations where the caller assumes it<br>
generates a six-digit string. I did a little poking around. It seems<br>
like "%N" isn't used.<br>
<br>
</blockquote></span>
Could the number of digits be specified? You could have "%9f" for<br>
nanoseconds, "%3f" for milliseconds, etc. The default would be 6<br>
microseconds for backwards compatibility.</blockquote><div><br></div><div>Ruby does that, but use %9N. (a plain %N consume 9 digits by default). </div><div><br></div><div>GNU date also use %N, but doesn't allow to specify the number of digits to consume.</div></div></div></div>