def deltaFrames(t1, t2, frameRate):
    """Returns the number of frames between t1 and t2
    positive if t1<=t2, negative otherwise"""
    if t1 > t2:
        return -(t1 - t2).seconds * frameRate
    else:
        return (t2 - t1).seconds * frameRate
