Calculate time difference and new time?


#1

I have time in hours and minutes as strings, like “12” hours and “00” minutes. I need to subtract X minutes from that time and get new time in the 12:30 format. Basically, to subtract time 2 from time 1 and get time 3 (18:00 - 120 minutes = 16:00). How can I efficiently do this?


#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.