Extract hours and minutes from Seconds

Certified Associate Developer

Hello, 

I am trying to calculate hours and minutes from the stopwatch component, 

for the hours will use seconds/3600

the problem comes when have to calculate the minutes, will use the same formula but the question is here from the result of seconds/3600 how to extract only the numbers after the decimal point and than multiply it by 60. 

for example: 

124000 seconds. 

hours = 124000 / 3600 = 3.4445 hours

minutes = 0.4445 x 60 = 26 minutes

Any advice if there is a function that can achieve this 

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data