Ledger Nano X - The secure hardware wallet
SHARE
TWEET

data diff

krot Sep 1st, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $dataMy= date('Ymd',time());
  2. $dlv='20190107170000';
  3. $dlv=substr($dlv,0,8);
  4.  
  5. $a = \DateTime::createFromFormat('Ymd', $dataMy );
  6. $b = \DateTime::createFromFormat('Ymd',$dlv);
  7. $interval = $a->diff($b);
  8.  
  9. echo $interval->days;
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