Perform operations on dates and times.
cargo add chrono
Print current datetime in an arbitrary format:
use chrono::prelude::*; fn main() { let now: DateTime<Local> = Local::now(); println!("{}", now.format("%Y-%m-%d %H:%M:%S")); }