mirror of
https://github.com/chronotope/chrono.git
synced 2025-10-02 07:21:41 +00:00
Clarify timezone conversion in docs
This commit is contained in:
parent
79686de2d1
commit
6d9f91874b
@ -49,9 +49,10 @@
|
||||
//!
|
||||
//! Chrono provides a `DateTime` type for the combined date and time.
|
||||
//!
|
||||
//! `DateTime`, among others, is timezone-aware and
|
||||
//! must be constructed from the `TimeZone` object.
|
||||
//! `DateTime`s with different time zones do not mix, but can be converted to each other.
|
||||
//! `DateTime`, among others, is timezone-aware and must be constructed from
|
||||
//! the `TimeZone` object.
|
||||
//! `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()`)
|
||||
//! or in the local time zone (`Local::now()`).
|
||||
|
Loading…
x
Reference in New Issue
Block a user