SciPy

scipy.signal.StateSpace.dt

StateSpace.dt

Return the sampling time of the system, None for lti systems.