Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php time passed since date

$now = new DateTime;
$ago = new DateTime($someTimeAgo);
$diff = $now->diff($ago);
$formattedTime = $diff->format('%H:%I:%S');
 
PREVIOUS NEXT
Tagged: #php #time #passed #date
ADD COMMENT
Topic
Name
2+7 =