picasothakkar
asked on
Convert a second value into hours mintues and seconds
What i need to achive :
There is a value that is stored in the database ( call_req.time_spent_sum) this has a value in seconds
I need this value to be given as hours:mintues:seconds
so if call_req.time_spent_sum = 4830
i need to get 1:20:30
this is got by
3600 + 1200 +30
now after getting this value
i also have to get the sum of the amount of hr:min:sec spent on solving a particular problem in that day .
there are a few functions i have come across
such as
hour
minutes
second
CTime
Time
Ive tried these but I am unsuccessful in getting the solution.
Please advice
ASAP .
There is a value that is stored in the database ( call_req.time_spent_sum) this has a value in seconds
I need this value to be given as hours:mintues:seconds
so if call_req.time_spent_sum = 4830
i need to get 1:20:30
this is got by
3600 + 1200 +30
now after getting this value
i also have to get the sum of the amount of hr:min:sec spent on solving a particular problem in that day .
there are a few functions i have come across
such as
hour
minutes
second
CTime
Time
Ive tried these but I am unsuccessful in getting the solution.
Please advice
ASAP .
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I would suggest that in the CR you summarize your seconds before you display them with the above formula. This way you are able to acheive both results in multiple areas.
If you need to convert seconds to a proper time field (as opposed to a string field as described above), all you need is:
time({YourSeconds}/24/60/6 0)
time({YourSeconds}/24/60/6
Ken:
I agree that will work, just with the caveat that when the number of seconds are >= 86400, then you will not see the elapsed correct time.
I agree that will work, just with the caveat that when the number of seconds are >= 86400, then you will not see the elapsed correct time.