Python Time Difference In Milliseconds, A timedelta represents a duration — the difference between two dates or times.