Get_timedelta_as_seconds.rst 387 B

12345678910111213
  1. Get timedelta as seconds (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.get_timedelta_second()
  8. :Output:
  9. ::
  10. 600.0