Merge pull request #65 from dbrgn/docs-improvement
Clarify timezone conversion in docs
This commit is contained in:
commit
a2debbdcec
|
@ -49,9 +49,10 @@
|
||||||
//!
|
//!
|
||||||
//! Chrono provides a `DateTime` type for the combined date and time.
|
//! Chrono provides a `DateTime` type for the combined date and time.
|
||||||
//!
|
//!
|
||||||
//! `DateTime`, among others, is timezone-aware and
|
//! `DateTime`, among others, is timezone-aware and must be constructed from
|
||||||
//! must be constructed from the `TimeZone` object.
|
//! the `TimeZone` object.
|
||||||
//! `DateTime`s with different time zones do not mix, but can be converted to each other.
|
//! `DateTime`s with different time zones do not mix, but can be converted to
|
||||||
|
//! each other using the `DateTime::with_timezone` method.
|
||||||
//!
|
//!
|
||||||
//! You can get the current date and time in the UTC time zone (`UTC::now()`)
|
//! You can get the current date and time in the UTC time zone (`UTC::now()`)
|
||||||
//! or in the local time zone (`Local::now()`).
|
//! or in the local time zone (`Local::now()`).
|
||||||
|
|
Loading…
Reference in New Issue