0.2.2: language & docs changes.

- `missing_docs` lint now checks for associated types.
This commit is contained in:
Kang Seonghoon 2015-02-27 00:24:06 +09:00
parent c11b6deb5a
commit ffa86603ae
4 changed files with 9 additions and 6 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "chrono"
version = "0.2.1"
version = "0.2.2"
authors = ["Kang Seonghoon <public+rust@mearie.org>"]
description = "Date and time library for Rust"
@ -15,5 +15,5 @@ license = "MIT/Apache-2.0"
name = "chrono"
[dependencies]
time = "0.1.17"
time = "0.1.19"

View File

@ -1,4 +1,4 @@
[Chrono][doc] 0.2.1
[Chrono][doc] 0.2.2
===================
[![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.
`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.
### Naive date and time

View File

@ -4,7 +4,7 @@
/*!
# Chrono 0.2.1
# Chrono 0.2.2
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.
@ -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.
`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.
### Naive date and time

View File

@ -165,6 +165,9 @@ pub trait Offset: Sized + Clone + fmt::Debug {
/// The time zone.
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;
/// Makes a new `Date` from year, month, day and the current time zone.