I can get the date, the hours, minutes, seconds and nanoseconds in the date format, but I can't get seconds as a floating point or integer number.
extern crate chrono;
use chrono::prelude::*;
fn main() {
let local: DateTime<Local> = Local::now();
println!("{}", local);
}
I have already read the docs.