Set_start_time.rst 344 B

12345678910111213141516
  1. Set start time
  2. --------------
  3. :Sample Code:
  4. .. code:: python
  5. from datetimerange import DateTimeRange
  6. time_range = DateTimeRange()
  7. print(time_range)
  8. time_range.set_start_datetime("2015-03-22T10:00:00+0900")
  9. print(time_range)
  10. :Output:
  11. ::
  12. NaT - NaT
  13. 2015-03-22T10:00:00+0900 - NaT