i am trying to output "900,000 milliseconds" in the format "days:hours:minutes:seconds" and I am 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 to return
00:00:15:00
or something like this...
But for any reason it returns
01:01:15:00
Can anybody tell me why and how to fix it?
I thought it had to do something with time zones, but it added 1 to the number of days as well...?
Thanks in advance!
dd
for DAYS since oned
is Day of the month – Acetylide