12345678910111213141516 |
- Set time range (set both start and end time)
- --------------------------------------------
- :Sample Code:
- .. code:: python
- from datetimerange import DateTimeRange
- time_range = DateTimeRange()
- print(time_range)
- time_range.set_time_range("2015-03-22T10:00:00+0900", "2015-03-22T10:10:00+0900")
- print(time_range)
- :Output:
- ::
- NaT - NaT
- 2015-03-22T10:00:00+0900 - 2015-03-22T10:10:00+0900
|