Merge pull request #269 from afgomez/patch-1

Update broken links to `time::Duration`
This commit is contained in:
Brandon W Maister 2018-08-14 11:04:31 -04:00 committed by GitHub
commit b49848d680
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,7 @@ use chrono::prelude::*;
### Duration ### Duration
Chrono currently uses Chrono currently uses
the [`time::Duration`](https://doc.rust-lang.org/time/time/struct.Duration.html) type the [`time::Duration`](https://docs.rs/time/0.1.40/time/struct.Duration.html) type
from the `time` crate to represent the magnitude of a time span. from the `time` crate to represent the magnitude of a time span.
Since this has the same name to the newer, standard type for duration, Since this has the same name to the newer, standard type for duration,
the reference will refer this type as `OldDuration`. the reference will refer this type as `OldDuration`.
@ -86,9 +86,9 @@ Chrono does not yet natively support
the standard [`Duration`](https://doc.rust-lang.org/std/time/struct.Duration.html) type, the standard [`Duration`](https://doc.rust-lang.org/std/time/struct.Duration.html) type,
but it will be supported in the future. but it will be supported in the future.
Meanwhile you can convert between two types with Meanwhile you can convert between two types with
[`Duration::from_std`](https://doc.rust-lang.org/time/time/struct.Duration.html#method.from_std) [`Duration::from_std`](https://docs.rs/time/0.1.40/time/struct.Duration.html#method.from_std)
and and
[`Duration::to_std`](https://doc.rust-lang.org/time/time/struct.Duration.html#method.to_std) [`Duration::to_std`](https://docs.rs/time/0.1.40/time/struct.Duration.html#method.to_std)
methods. methods.
### Date and Time ### Date and Time