| Crates.io | chrono_parser |
| lib.rs | chrono_parser |
| version | 0.1.0 |
| created_at | 2021-12-29 19:32:41.542055+00 |
| updated_at | 2021-12-29 19:32:41.542055+00 |
| description | Parser extension on the top of chrono |
| homepage | |
| repository | https://github.com/PumpkinSeed/chrono-parser |
| max_upload_size | |
| id | 504988 |
| size | 18,983 |
Date, time parser in any format. Recognize the format and parse to DateTime<FixedOffset>.
Known formats:
use chrono_parser::datetime;
fn main() {
match datetime("02 Jan 06 15:04 -0700".to_string()) {
Ok(v) => {...}
Err(err) => panic!("{}", err.to_string()),
}
}