From dce4ddf5921e7ebdab9a95e7f401e35e22554320 Mon Sep 17 00:00:00 2001 From: John Heitmann Date: Mon, 13 Jun 2016 21:03:52 -0700 Subject: [PATCH] Clean up Duration intro doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Make what Duration is the first thing mentioned instead of project history. • Add "magnitude" to the description to disambiguate it from Interval (in the Joda sense). • Brush up some awkward language. • Add a doc link and illustrate the module namespace. --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 423e886..da2d6c2 100644 --- a/README.md +++ b/README.md @@ -46,10 +46,11 @@ extern crate chrono; ### Duration -Chrono used to have a `Duration` type, which represents the time span. -This is a simple reexport of -[`time::Duration`](http://doc.rust-lang.org/time/time/struct.Duration.html) type -provided by crates.io `time` crate (which originally comes from Chrono). +[`chrono::Duration`](https://lifthrasiir.github.io/rust-chrono/chrono/struct.Duration.html) +represents the magnitude of a time span. `Duration` used to be provided by Chrono. +It has been moved to the `time` crate as the +[`time::Duration`](http://doc.rust-lang.org/time/time/struct.Duration.html) type, but is +still re-exported from Chrono. ### Date and Time