Home
last modified time | relevance | path

Searched refs:datetime_from_str (Results 1 – 7 of 7) sorted by relevance

/external/rust/crates/plotters/examples/
Dstock.rs6 .datetime_from_str(&format!("{} 0:0", t), "%Y-%m-%d %H:%M") in parse_time()
/external/rust/crates/chrono/tests/
Dwasm.rs16 let actual = Utc.datetime_from_str(&now, "%s").unwrap(); in now()
/external/rust/crates/chrono/
DREADME.md284 3. [`Offset::datetime_from_str`](https://docs.rs/chrono/0.4/chrono/offset/trait.TimeZone.html#metho…
312 assert_eq!(Utc.datetime_from_str("2014-11-28 12:00:09", "%Y-%m-%d %H:%M:%S"), Ok(dt.clone()));
313 assert_eq!(Utc.datetime_from_str("Fri Nov 28 12:00:09 2014", "%a %b %e %T %Y"), Ok(dt.clone()));
316 assert!(Utc.datetime_from_str("Fri Nov 28 12:00:09", "%a %b %e %T %Y").is_err());
318 assert!(Utc.datetime_from_str("Fri Nov 28 12:00:09", "%a %b %e %T").is_err());
320 assert!(Utc.datetime_from_str("Sat Nov 28 12:00:09 2014", "%a %b %e %T %Y").is_err());
DCHANGELOG.md622 - `TimeZone` now also has a method for parsing `DateTime`, namely `datetime_from_str`.
/external/rust/crates/chrono/src/offset/
Dmod.rs416 fn datetime_from_str(&self, s: &str, fmt: &str) -> ParseResult<DateTime<Self>> { in datetime_from_str() method
/external/rust/crates/chrono/src/format/
Dparse.rs867 assert_eq!(Ok(dt), Utc.datetime_from_str("Sunday, 06-Nov-94 08:49:37 GMT", RFC850_FMT)); in parse_rfc850()
881 assert_eq!(Ok(val.0), Utc.datetime_from_str(val.1, RFC850_FMT)); in parse_rfc850()
/external/rust/crates/chrono/src/
Ddatetime.rs2417 Utc.datetime_from_str("Fri, 09 Aug 2013 23:54:35 GMT", "%a, %d %b %Y %H:%M:%S GMT"), in test_datetime_parse_from_str()