SciPy

scipy.signal.lti.dt

lti.dt

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