Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

pass to time

 
Isaac Ferguson
Ranch Hand
Posts: 837
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi


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

Any idea?

Thanks
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15214
36
Android IntelliJ IDE Java Scala Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic