Posts: 366
Threads: 34
Joined: May 2014
Reputation:
0
I didn't quite get your Question.
Posts: 244
Threads: 55
Joined: Nov 2013
Reputation:
0
Well we have 151654 seconds, right? Then how to get days, hours, minutes and seconds from that value?
Posts: 450
Threads: 10
Joined: May 2014
Reputation:
0
151654 seconds = 1.75525463 days
Posts: 1,826
Threads: 52
Joined: Feb 2012
Reputation:
0
What exactly do you want? A function to get those parameters?
Posts: 484
Threads: 10
Joined: Jul 2012
Reputation:
0
60 seconds - 1 minute
151654 seconds - x
X = 151654 / 60 = 2527,566667 minutes
60 seconds - 1 minute
Y - 0.566667 minutes
Y = 0.566666667 * 60 = 34 seconds
151654 seconds = 2527 minutes and 34 seconds
60 minutes - 1 hour
2527 minutes - Z
Z=2527/60=42.1166666666667 hours
60 minutes - 1 hour
M - 0.11666666666667 hours
M= 0.116666666666666666666667*60 = 7 minutes
151654 seconds = 42 hours 7 minutes and 34 seconds
24 hours - 1 day
42 hours - D
D = 1.75
24 hours - 1 day
H - 0.75 days
H = 0.75*24 = 18 hours
151654 seconds = 1 day 18 hours 7 minutes and 34 seconds
Now with this info get your shit together and find a formula for yourself