Folder reorganize 1
This commit is contained in:
6
includes/timetest.php
Normal file
6
includes/timetest.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
$d1= new DateTime("05:00:00am"); // first date
|
||||
$d2= new \DateTime("now"); // second date
|
||||
$interval= $d1->diff($d2); // get difference between two dates
|
||||
echo $interval->h; // convert days to hours and add hours from difference
|
||||
?>
|
||||
Reference in New Issue
Block a user