File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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: 331
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: 14074
    
  16

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 7 API documentation
Scala Notes - My blog about Scala
 
wood burning stoves
 
subject: pass to time
 
Similar Threads
WA #1.....word association
passed SCWCD
Passed SCWCD (79%)
Finally scraped through
disappointed with score in real test