repl.it
@acwoss/

WoozyLoudNature

PHP (Legacy)

No description

fork
loading
main.php
1
2
3
4
5
6
$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;
PHP 7.0.8 (Legacy: use the following for new features: Command-line PHP: https://repl.it/languages/php_cli PHP Web Server: https://repl.it/languages/php7