Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Convert "x milliseconds" to "A days B hours C minutes D seconds"

807598Apr 12 2006 — edited May 5 2006
I'm trying to find an elegant way to convert:
"X milliseconds" pattern to "A days B hours C minutes D seconds"

Currently, I use multiplication and division to get the desired result.
But I was investigating if there's a way to do this using java class?

Thanks in advance for the help
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 2 2006
Added on Apr 12 2006
12 comments
146 views