Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

dateinterval hh mm ss

$now = new DateTime;
$ago = new DateTime($someTimeAgo);
$diff = $now->diff($ago);
$formattedTime = $diff->format('%H:%I:%S');
 
PREVIOUS NEXT
Tagged: #dateinterval #hh #mm #ss
ADD COMMENT
Topic
Name
3+9 =