- Create a DateTimeRange instance from a range text
- -----------------------------------------------------------------
- :Sample Code:
- .. code:: python
- from datetimerange import DateTimeRange
- time_range = DateTimeRange.from_range_text("2015-03-22T10:00:00+0900 - 2015-03-22T10:10:00+0900")
- str(time_range)
- :Output:
- ::
- '2015-03-22T10:00:00+0900 - 2015-03-22T10:10:00+0900'
|