Reputation: 61
I have a total ammount of milliseconds (ie 4007587) and I want to display it as hours:minutes:seconds.
my PHP code:
$mil = 4007587
$timestamp = $mil/1000;
echo date("g:i:s", $timestamp);
the result should be 1:06:47 but my result is 8:06:47 what's wrong?
Upvotes: 1
Views: 1002