This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Java in General and the fly likes pass to time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "pass to time" Watch "pass to time" New topic
Author

pass to time

Isaac Ferguson
Ranch Hand

Joined: Jun 22, 2012
Posts: 563
Hi


I need pass something like this 78291.0 to hh;mm:ss

Any idea?

Thanks
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14950
    
  26

What does the number 78291.0 represent? Is it a number of seconds?

You know that an hour contains 60 minutes and a minute contains 60 seconds (and ofcourse an hour contains 60 * 60 = 3600 seconds). So, how would you convert 78291 seconds to hours, minutes and seconds? First think about the logic before trying to write a program to do this.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: pass to time
 
It's not a secret anymore!