mirror of
https://github.com/chronotope/chrono.git
synced 2025-10-02 15:26:12 +00:00
Fix documentation that is no longer true
This commit is contained in:
parent
7c90f35a65
commit
c14b3bb5f9
@ -1087,14 +1087,16 @@ where
|
|||||||
|
|
||||||
/// Accepts a relaxed form of RFC3339.
|
/// Accepts a relaxed form of RFC3339.
|
||||||
/// A space or a 'T' are acepted as the separator between the date and time
|
/// A space or a 'T' are acepted as the separator between the date and time
|
||||||
/// parts. Additional spaces are allowed between each component.
|
/// parts.
|
||||||
///
|
///
|
||||||
/// All of these examples are equivalent:
|
/// All of these examples are equivalent:
|
||||||
/// ```
|
/// ```
|
||||||
/// # use chrono::{DateTime, Utc};
|
/// # use chrono::{DateTime, Utc};
|
||||||
/// "2012-12-12T12:12:12Z".parse::<DateTime<Utc>>();
|
/// "2012-12-12T12:12:12Z".parse::<DateTime<Utc>>()?;
|
||||||
/// "2012-12-12 12:12:12Z".parse::<DateTime<Utc>>();
|
/// "2012-12-12 12:12:12Z".parse::<DateTime<Utc>>()?;
|
||||||
/// "2012- 12-12T12: 12:12Z".parse::<DateTime<Utc>>();
|
/// "2012-12-12 12:12:12+0000".parse::<DateTime<Utc>>()?;
|
||||||
|
/// "2012-12-12 12:12:12+00:00".parse::<DateTime<Utc>>()?;
|
||||||
|
/// # Ok::<(), chrono::ParseError>(())
|
||||||
/// ```
|
/// ```
|
||||||
impl str::FromStr for DateTime<Utc> {
|
impl str::FromStr for DateTime<Utc> {
|
||||||
type Err = ParseError;
|
type Err = ParseError;
|
||||||
@ -1106,14 +1108,16 @@ impl str::FromStr for DateTime<Utc> {
|
|||||||
|
|
||||||
/// Accepts a relaxed form of RFC3339.
|
/// Accepts a relaxed form of RFC3339.
|
||||||
/// A space or a 'T' are acepted as the separator between the date and time
|
/// A space or a 'T' are acepted as the separator between the date and time
|
||||||
/// parts. Additional spaces are allowed between each component.
|
/// parts.
|
||||||
///
|
///
|
||||||
/// All of these examples are equivalent:
|
/// All of these examples are equivalent:
|
||||||
/// ```
|
/// ```
|
||||||
/// # use chrono::{DateTime, Local};
|
/// # use chrono::{DateTime, Local};
|
||||||
/// "2012-12-12T12:12:12Z".parse::<DateTime<Local>>();
|
/// "2012-12-12T12:12:12Z".parse::<DateTime<Local>>()?;
|
||||||
/// "2012-12-12 12:12:12Z".parse::<DateTime<Local>>();
|
/// "2012-12-12 12:12:12Z".parse::<DateTime<Local>>()?;
|
||||||
/// "2012- 12-12T12: 12:12Z".parse::<DateTime<Local>>();
|
/// "2012-12-12 12:12:12+0000".parse::<DateTime<Local>>()?;
|
||||||
|
/// "2012-12-12 12:12:12+00:00".parse::<DateTime<Local>>()?;
|
||||||
|
/// # Ok::<(), chrono::ParseError>(())
|
||||||
/// ```
|
/// ```
|
||||||
#[cfg(feature = "clock")]
|
#[cfg(feature = "clock")]
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "clock")))]
|
#[cfg_attr(docsrs, doc(cfg(feature = "clock")))]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user