- date: documentation ( source)
- strtotime: documentation ( source)
<?php
$time1=date('H:i:s',strtotime('now'));
$time2= date('H:i:s',strtotime('now'));
$timeform= new DateTime($time2);
$newtime2= $timeform->format('H:i:s');
echo $total=$time1+$newtime2;