Hi guys,
So i've pulled through the data from a sql database, and now i'm looking how to convert millieseconds into hh:mm:ss.
The millieseconds i pull through is 167392
Any help is appreciated.
Converting Milliseconds into hh:mm:ss
Moderator: General Moderators
Re: Converting Milliseconds into hh:mm:ss
What is that number relative to? That's only 167 seconds.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Re: Converting Milliseconds into hh:mm:ss
On Google everywhere 
Hours = Milliseconds / (1000*60*60)
Minutes = (Milliseconds % (1000*60*60)) / (1000*60)
Seconds = ((Milliseconds % (1000*60*60)) % (1000*60)) / 1000
Lee
Hours = Milliseconds / (1000*60*60)
Minutes = (Milliseconds % (1000*60*60)) / (1000*60)
Seconds = ((Milliseconds % (1000*60*60)) % (1000*60)) / 1000
Lee