0
Hello, I’m trying here how to do for this value "147878163" be converted to "1 day 17 hours 15 minutes" for example
Apparently it’s timestamp, but this value is different from what I usually use, because converting to datetime is 40 years ago... But the system shows that the service is being used 1 day 17 hours.... And when I use the API to rescue some values to integrate to my external system, the Lifetime key has this value "147878163" that in hours would be 1 day 17 days and such...
Can someone help me?
Ah.... OK.. I’ll try to do it here, I didn’t know it was milliseconds =D already put the results
– Lucas Moraes
Try it there. Anything ask here
– Adriano Valentim
I got it! Ai ta summing for example 30h now I need to make it 1 day and 6h - The code - $total = ($Lifetime/1000); $hours = (strlen(floor($total / 3600)) == 1) ? " 0". floor($total / 3600)."": floor($total / 3600); $minutos = (strlen(floor(($total - ($hours * 3600)) / 60)) == 1) ? " 0". floor(($total - ($hours * 3600)) / 60)."": floor(($total - ($hours * 3600)) / 60); $seconds = (strlen(floor($total % 60)) == 1) ? " 0". floor($total % 60)."": floor($total % 60); $Lifetime = $hours . ":" . $minutes . ":" . $seconds; as jumps line here ?
– Lucas Moraes