aspose 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: 321
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: 13875
    
  10

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: pass to time
 
Similar Threads
Finally scraped through
Passed SCWCD (79%)
disappointed with score in real test
passed SCWCD
WA #1.....word association