0.2.2: language & docs changes.
- `missing_docs` lint now checks for associated types.
This commit is contained in:
parent
c11b6deb5a
commit
ffa86603ae
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "chrono"
|
name = "chrono"
|
||||||
version = "0.2.1"
|
version = "0.2.2"
|
||||||
authors = ["Kang Seonghoon <public+rust@mearie.org>"]
|
authors = ["Kang Seonghoon <public+rust@mearie.org>"]
|
||||||
|
|
||||||
description = "Date and time library for Rust"
|
description = "Date and time library for Rust"
|
||||||
|
@ -15,5 +15,5 @@ license = "MIT/Apache-2.0"
|
||||||
name = "chrono"
|
name = "chrono"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
time = "0.1.17"
|
time = "0.1.19"
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
[Chrono][doc] 0.2.1
|
[Chrono][doc] 0.2.2
|
||||||
===================
|
===================
|
||||||
|
|
||||||
[![Chrono on Travis CI][travis-image]][travis]
|
[![Chrono on Travis CI][travis-image]][travis]
|
||||||
|
@ -224,7 +224,7 @@ assert_eq!(UTC.ymd(2014, 11, 28).and_hms_milli(7, 8, 9, 10).format("%H%M%S").to_
|
||||||
|
|
||||||
There is no timezone-aware `Time` due to the lack of usefulness and also the complexity.
|
There is no timezone-aware `Time` due to the lack of usefulness and also the complexity.
|
||||||
|
|
||||||
`DateTime` has `date` method which returns a narrow view to its date component.
|
`DateTime` has `date` method which returns a `Date` which represents its date component.
|
||||||
There is also a `time` method, which simply returns a naive local time described below.
|
There is also a `time` method, which simply returns a naive local time described below.
|
||||||
|
|
||||||
### Naive date and time
|
### Naive date and time
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|
||||||
# Chrono 0.2.1
|
# Chrono 0.2.2
|
||||||
|
|
||||||
Date and time handling for Rust. (also known as `rust-chrono`)
|
Date and time handling for Rust. (also known as `rust-chrono`)
|
||||||
It aims to be a feature-complete superset of the [time](https://github.com/rust-lang/time) library.
|
It aims to be a feature-complete superset of the [time](https://github.com/rust-lang/time) library.
|
||||||
|
@ -226,7 +226,7 @@ assert_eq!(UTC.ymd(2014, 11, 28).and_hms_milli(7, 8, 9, 10).format("%H%M%S").to_
|
||||||
|
|
||||||
There is no timezone-aware `Time` due to the lack of usefulness and also the complexity.
|
There is no timezone-aware `Time` due to the lack of usefulness and also the complexity.
|
||||||
|
|
||||||
`DateTime` has `date` method which returns a narrow view to its date component.
|
`DateTime` has `date` method which returns a `Date` which represents its date component.
|
||||||
There is also a `time` method, which simply returns a naive local time described below.
|
There is also a `time` method, which simply returns a naive local time described below.
|
||||||
|
|
||||||
### Naive date and time
|
### Naive date and time
|
||||||
|
|
|
@ -165,6 +165,9 @@ pub trait Offset: Sized + Clone + fmt::Debug {
|
||||||
|
|
||||||
/// The time zone.
|
/// The time zone.
|
||||||
pub trait TimeZone: Sized {
|
pub trait TimeZone: Sized {
|
||||||
|
/// An associated offset type.
|
||||||
|
/// This type is used to store the actual offset in date and time types.
|
||||||
|
/// The original `TimeZone` value can be recovered via `TimeZone::from_offset`.
|
||||||
type Offset: Offset;
|
type Offset: Offset;
|
||||||
|
|
||||||
/// Makes a new `Date` from year, month, day and the current time zone.
|
/// Makes a new `Date` from year, month, day and the current time zone.
|
||||||
|
|
Loading…
Reference in New Issue