I am trying to output "900,000 milliseconds" in the format "days: hours: minutes: seconds", and I'm using this code right now:
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("dd:HH:mm:ss"); String formatted = simpleDateFormat.format(900000)
900,000 milliseconds should be 15 minutes so I want it back
00:00:15:00
or something like that ...
But for some reason it returns
01:01:15:00
Can someone tell me why and how to fix it?
I thought he needed to do something with time zones, but it added 1 to the number of days ...?
Thanks in advance!
source share