SHARE
TWEET

Untitled

a guest Aug 19th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. extern crate chrono;
  2. extern crate time;
  3.  
  4. fn main() {
  5.     use chrono::prelude::*;
  6.     use time::Duration;
  7.  
  8.     let utc: DateTime<Utc> = Utc::now();
  9.     let dt: DateTime<Utc> = utc + Duration::days(12);
  10.    
  11.     println!("{}", utc);
  12.     println!("{}", dt);
  13.     println!("{}", dt > utc);
  14. }
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
 
Top