I’m trying to get a double value with seconds to convert to a custom time format. I’ve tried SimpleDate Format but that doesn’t work…
I have a double value in this format: 407.33386569554585 (representing 407 seconds and 333 milliseconds …).
I need that in this format: HH/MM/SS.MS
How would i do that?
Thanks in advance!
Multiply by 1,000 then cast to a
longand construct a Date with it.From here, you can use a SimpleDateFormat to make the string you’d like.