i want ask php,
Date now is : 10:10:10 18/08/2020
Router Uptime is : 1w1d11h1m1s
when is date of turning on the Router? example 10:10:10 11/08/2020
Need function php with format date H:i:s d/m/Y
New EDIT add example function:
$uptime = "1w1d11h1m1s";
function turn_on($uptime)
{
$w = str_replace('w', ' weekdays', $uptime);
$d = str_replace('d', ' days', $uptime);
$h = str_replace('h', ' hours', $uptime);
$i = str_replace('m', ' minutes', $uptime);
$s = str_replace('s', ' seconds', $uptime);
echo 'date is' . ('H:i:s d/m/Y' ,strtotime(' - '. $w $d $h $i $s ));
}
Thanks for everybody who can help me