SHARE
TWEET

Untitled

a guest Jul 23rd, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. use chrono::prelude::*;
  2.  
  3. fn main() {
  4.     let valid_format = Local::now().format("%A, %Y-%m-%d, %H:%M:%S");
  5.     let invalid_format = Local::now().format("%DAG@#$%#^$@#%DR");
  6.     println!("{:#?}\n\n{:#?}", valid_format, invalid_format);
  7. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top