To represent a difference in time we will use the pandas Timedelta object. These are common as results of determining the duration between two dates or to calculate the date at a specific interval of time from another date and/or time.
To demonstrate a Timedelta, the following uses a timedelta object to calculate a one-day increase in the time from the specified date:
The following demonstrates how to calculate how many days there are between two dates: