permaculture playing cards
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

pass to time

Isaac Ferguson
Ranch Hand

Joined: Jun 22, 2012
Posts: 651

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

Any idea?

Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15045

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 agree. Here's the link:
subject: pass to time
It's not a secret anymore!