<p dir="auto">The only thing std::time contains is <a href="http://doc.rust-lang.org/std/time/duration/struct.Duration.html" rel="nofollow"><code class="notranslate">Duration</code></a>, which isn't too useful on its own. The real meat of it is in <a href="http://doc.rust-lang.org/time/index.html" rel="nofollow"><code class="notranslate">::time</code></a>.</p>
<p dir="auto">Perhaps one should be moved into the other?</p>
<p dir="auto">Alternatively, we can add some docs to <code class="notranslate">Duration</code> that explain how to work with it. One common way of getting a <code class="notranslate">Duration</code> is to subtract two instances of <code class="notranslate">time::now().to_timespec()</code>s, however this is completely not obvious on <code class="notranslate">std::time</code>. I don't mind adding these docs.</p>
<p dir="auto"><a href="https://github.com/brson"><img src="https://avatars.githubusercontent.com/u/147214?v=3" align="left" width="96" height="96" hspace="10" style="max-width: 100%;"></a> <strong>Issue by <a href="https://github.com/brson">brson</a></strong><br>
<em>Wednesday Jun 04, 2014 at 22:11 GMT</em></p>
<p dir="auto"><em>For earlier discussion, see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35009402" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/14657" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/14657/hovercard" href="https://github.com/rust-lang/rust/issues/14657">rust-lang/rust#14657</a></em></p>
<p dir="auto"><em>This issue was labelled with: A-libs, I-enhancement in the Rust repository</em></p>
<hr>
<p dir="auto">Just clone <a href="http://www.joda.org/joda-time/" rel="nofollow">JodaTime</a>. Start out of tree.</p>