def almost_same_datetime(dt1, dt2, allowed_delta=timedelta(minutes=1)):
 return (abs((dt1 - dt2)) < allowed_delta)

def almost_same_datetime ( dt1 , dt2 , allowed_delta = timedelta ( minutes = 1 ) ) : return ( abs ( ( dt1 - dt2 ) ) < allowed_delta )
returns true if these are w/in a minute of each other .