I have two string inputs and I need to compare if their difference is 15 min
input1: 20-25-43 (string, represent HH-MM-SS) input2: 20-40-43(string, represent HH-MM-SS)
Initially, I was thinking to replace hyphen(-) and convert string to number and input2 - input1
. However, the result is either 1500 or 5500.
I am wondering if there is possible to use the time() method of DateTime objects?