Answers for "milliseconds to hours"

2

convert milliseconds to hours

int seconds = (int) (milliseconds / 1000) % 60 ;
int minutes = (int) ((milliseconds / (1000*60)) % 60);
int hours   = (int) ((milliseconds / (1000*60*60)) % 24);
Posted by: Guest on June-12-2021

Code answers related to "milliseconds to hours"

Code answers related to "Javascript"

Browse Popular Code Answers by Language