### chrono-english Command-Line Examples Source: https://github.com/stevedonovan/chrono-english/blob/master/readme.md Demonstrates the usage of the `parse-date` command-line tool provided by chrono-english for parsing various English date and time expressions. Examples show parsing relative dates, absolute dates with different formats, and specifying the dialect. ```bash alias p='cargo run --quiet --example parse-date --' $ p 'next April' base Wed Mar 14 20:10:37 2018 +0200 calc Sun Apr 1 00:00:00 2018 +0200 $ p '20/03/18 12:04' base Wed Mar 14 20:12:44 2018 +0200 calc Tue Mar 20 12:04:00 2018 +0200 $ p '9/11/01' --american base Wed Mar 14 20:13:08 2018 +0200 calc Tue Sep 11 00:00:00 2001 +0200 $ p 'next fri 8pm' '2018-03-14' base Wed Mar 14 00:00:00 2018 +0200 calc Fri Mar 16 20:00:00 2018 +0200 ``` -------------------------------- ### Parse English Date String Source: https://github.com/stevedonovan/chrono-english/blob/master/readme.md Parses a given English date string into a chrono DateTime object. It takes the date string, a base DateTime for relative calculations, and a Dialect (Uk or Us). The base time also determines the timezone. ```rust extern crate chrono_english; use chrono_english::{parse_date_string,Dialect}; extern crate chrono; use chrono::prelude::*; let date_time = parse_date_string("next friday 8pm", Local::now(), Dialect::Uk)?; println!("{}",date_time.format("%c")); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.