Searched refs:parse_from_str (Results 1 – 7 of 7) sorted by relevance
/external/rust/crates/chrono/src/naive/ |
D | datetime.rs | 220 pub fn parse_from_str(s: &str, fmt: &str) -> ParseResult<NaiveDateTime> { in parse_from_str() method 2423 NaiveDateTime::parse_from_str("2014-5-7T12:34:56+09:30", "%Y-%m-%dT%H:%M:%S%z"), in test_datetime_parse_from_str() 2427 NaiveDateTime::parse_from_str("2015-W06-1 000000", "%G-W%V-%u%H%M%S"), in test_datetime_parse_from_str() 2431 NaiveDateTime::parse_from_str( in test_datetime_parse_from_str() 2437 assert!(NaiveDateTime::parse_from_str( in test_datetime_parse_from_str() 2442 assert!(NaiveDateTime::parse_from_str("2014-5-7 12:3456", "%Y-%m-%d %H:%M:%S").is_err()); in test_datetime_parse_from_str() 2443 assert!(NaiveDateTime::parse_from_str("12:34:56", "%H:%M:%S").is_err()); // insufficient in test_datetime_parse_from_str() 2445 NaiveDateTime::parse_from_str("1441497364", "%s"), in test_datetime_parse_from_str() 2449 NaiveDateTime::parse_from_str("1283929614.1234", "%s.%f"), in test_datetime_parse_from_str() 2453 NaiveDateTime::parse_from_str("1441497364.649", "%s%.3f"), in test_datetime_parse_from_str() [all …]
|
D | date.rs | 523 pub fn parse_from_str(s: &str, fmt: &str) -> ParseResult<NaiveDate> { in parse_from_str() method 2323 NaiveDate::parse_from_str("2014-5-7T12:34:56+09:30", "%Y-%m-%dT%H:%M:%S%z"), in test_date_parse_from_str() 2327 NaiveDate::parse_from_str("2015-W06-1=2015-033", "%G-W%V-%u = %Y-%j"), in test_date_parse_from_str() 2331 NaiveDate::parse_from_str("Fri, 09 Aug 13", "%a, %d %b %y"), in test_date_parse_from_str() 2334 assert!(NaiveDate::parse_from_str("Sat, 09 Aug 2013", "%a, %d %b %Y").is_err()); in test_date_parse_from_str() 2335 assert!(NaiveDate::parse_from_str("2014-57", "%Y-%m-%d").is_err()); in test_date_parse_from_str() 2336 assert!(NaiveDate::parse_from_str("2014", "%Y").is_err()); // insufficient in test_date_parse_from_str()
|
D | time.rs | 504 pub fn parse_from_str(s: &str, fmt: &str) -> ParseResult<NaiveTime> { in parse_from_str() method 1776 NaiveTime::parse_from_str("2014-5-7T12:34:56+09:30", "%Y-%m-%dT%H:%M:%S%z"), in test_time_parse_from_str() 1779 assert_eq!(NaiveTime::parse_from_str("PM 12:59", "%P %H:%M"), Ok(hms(12, 59, 0))); in test_time_parse_from_str() 1780 assert!(NaiveTime::parse_from_str("12:3456", "%H:%M:%S").is_err()); in test_time_parse_from_str()
|
/external/rust/crates/rusqlite/src/types/ |
D | chrono.rs | 23 .and_then(|s| match NaiveDate::parse_from_str(s, "%Y-%m-%d") { in column_result() 47 match NaiveTime::parse_from_str(s, fmt) { in column_result() 76 match NaiveDateTime::parse_from_str(s, fmt) { in column_result()
|
/external/rust/crates/chrono/ |
D | README.md | 275 2. [`DateTime::parse_from_str`](https://docs.rs/chrono/0.4/chrono/struct.DateTime.html#method.parse… 305 assert_eq!(DateTime::parse_from_str("2014-11-28 21:00:09 +09:00", "%Y-%m-%d %H:%M:%S %z"),
|
D | CHANGELOG.md | 129 * `DateTime::parse_from_str` is more than 2x faster in some cases. (@michalsrb 637 - `parse_from_str` method has been added to all naive types and `DateTime<FixedOffset>`.
|
/external/rust/crates/chrono/src/ |
D | datetime.rs | 386 pub fn parse_from_str(s: &str, fmt: &str) -> ParseResult<DateTime<FixedOffset>> { in parse_from_str() method 2407 DateTime::parse_from_str("2014-5-7T12:34:56+09:30", "%Y-%m-%dT%H:%M:%S%z"), in test_datetime_parse_from_str() 2410 assert!(DateTime::parse_from_str("20140507000000", "%Y%m%d%H%M%S").is_err()); // no offset in test_datetime_parse_from_str() 2411 assert!(DateTime::parse_from_str( in test_datetime_parse_from_str()
|