0

How do you convert a number, say 320(seconds), into hours/minutes/seconds format in Java?

28th Sep 2020, 10:42 AM
DerAviator
DerAviator - avatar
2 Respuestas
+ 2
Divide that number by 60, i.e 330/60 mins and 330/(60*60) hours
28th Sep 2020, 10:44 AM
Samuel Khongthaw
Samuel Khongthaw - avatar
+ 1
No problem I got it, I think I'll use the modulus operator
28th Sep 2020, 11:46 AM
DerAviator
DerAviator - avatar