Hi, Collegues

Could I get time beetwen two datetimes in minutes, but only minutes of trading time, this means  from 9:30 to 16:00 for all full days and plus minutes of not full days between start end end:

def HandleRenko1(self, sender, data):
'''This function is called by our renkoClose consolidator defined in Initialize()
data: The new renko bar produced by the consolidator'''

start = self.RenkoWindow1[self.RenkoWindow1.Count - 1].Start
end = self.RenkoWindow1[0].EndTime
r_time = end - start

tradingminutes = ..... ?