Skip to content

Instantly share code, notes, and snippets.

@acwoss
Created April 23, 2018 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acwoss/d7540e9656578272e60e3fd02c71a404 to your computer and use it in GitHub Desktop.
Save acwoss/d7540e9656578272e60e3fd02c71a404 to your computer and use it in GitHub Desktop.
WoozyLoudNature created by acwoss - https://repl.it/@acwoss/WoozyLoudNature
$d1 = new DateTime('2018-04-23 11:20:33');
$d2 = new DateTime('2018-04-23 08:01:00');
$atraso = $d1->diff($d2);
echo $atraso->format('%H:%i:%s'), PHP_EOL;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment