Calculate time difference and new time?


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?


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