Hello
I have a problem with a time calculation.
A user can borrow a product for a certain time.
I have this time as double
e.g.
60.5 hours (means 60 hours / 30 minutes)
the actual usage time I have in the format 10:30 (so 10 hours, 30 minutes / string variable)
now I need the remaining amount as HH:mm (String)
so the calculation looks like this:
60.5 (hours) - 10:30 = 50:00
so I need how I convert the hours or the hour:minute so,
that as result
hh:mm (as string)
comes out
Best regards
Frank
I have a problem with a time calculation.
A user can borrow a product for a certain time.
I have this time as double
e.g.
60.5 hours (means 60 hours / 30 minutes)
the actual usage time I have in the format 10:30 (so 10 hours, 30 minutes / string variable)
now I need the remaining amount as HH:mm (String)
so the calculation looks like this:
60.5 (hours) - 10:30 = 50:00
so I need how I convert the hours or the hour:minute so,
that as result
hh:mm (as string)
comes out
Best regards
Frank