Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. use std::fmt;
  2. use std::fmt::Write;
  3. use chrono::prelude::*;
  4.  
  5. fn main() {
  6. let valid_format = Local::now().format("%A, %Y-%m-%d, %H:%M:%S");
  7. let invalid_format = Local::now().format("%DAG@#$%#^$@#%DR");
  8. println!("{:#?}\n\n{:#?}", valid_format, invalid_format);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement