Get_datetime.timedelta.rst 391 B

12345678910111213
  1. Get datetime.timedelta (from start\_datetime to the end\_datetime)
  2. ------------------------------------------------------------------
  3. :Sample Code:
  4. .. code:: python
  5. from datetimerange import DateTimeRange
  6. time_range = DateTimeRange("2015-03-22T10:00:00+0900", "2015-03-22T10:10:00+0900")
  7. time_range.timedelta
  8. :Output:
  9. ::
  10. datetime.timedelta(0, 600)