SciPy

scipy.signal.lti.dt

property lti.dt

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