Home
Head's Up: I'm in the middle of upgrading my site. Most things are in place, but there are something missing and/or broken including image alt text. Please bear with me while I'm getting things fixed.

Print The Current Date/Time Timestamp In Rust

rust
```cargo
[dependencies]
chrono = "0.4"
```

fn main() {
  let timestamp = chrono::prelude::Local::now();
  println!("{}", timestamp.to_string());
  println!("{}", timestamp.to_rfc3339());
  println!("{}", timestamp.to_rfc2822());
  println!("{}", timestamp.format("%Y-%m-%d %H:%M:%S"));
}
results start

Footnotes And References