jmquintana79
1/18/2017 - 9:11 AM

Minutes between two datetimes into a period of time

Minutes between two datetimes into a period of time

## TEMPORAL STEP (minutes)
def minutes_steps(ltimestamp):
    lsteps = [ (ltimestamp[i+1]-ltimestamp[i]).seconds // 60 for i in range(len(ltimestamp[:-1]))]
    return max(set(lsteps), key=lsteps.count)