I have an array of times:
Time_Array = [858, 926, 953, 1015, 1055, 1123, 1150, 1214, 1238, 1336, 1413]
The time in Time_Array
is formatted as military time with either the first or second digit being an hour, and the last two being a minute.
and a reference time:
T0 = 1516
T0
is in the HHMM format.
The times in Time_Array
and T0
are all strings currently.
What I'd like to do is with T0
, find the total time between each object in Time_Array
and T0
. Ie: The total time, in minutes, between T0
and the 0th value of the Time_Array, T0
and the 1st value of Time_Array
, etc. So, i'd need to convert each object to minutes, and then subtract the two.
I'm sure this is probably something rather trivial that I'm just missing, but I'm still learning a lot about python and how to treat lists when I need something from them. Any advice is greatly appreciated on this matter!