Source Code:
(back to article)
<?php $start = new DateTime('2022-10-01 10:00:00'); $now = new DateTime(); $interval = $now->diff($start); echo $interval->format('%y years %m months %d days %h hours %i minutes %s seconds');
Result:
Report an issue