Closed noamsgl closed 3 years ago
@noamsgl Thank you for your feedback.
You can construct a DateTimeRange
from a single string since DateTimeRange 1.2.0
:
>>> from datetimerange import DateTimeRange
>>> DateTimeRange.from_range_text("2008-01-03T06:55:29 - 2008-01-03T07:55:29")
2008-01-03T06:55:29 - 2008-01-03T07:55:29
hi
Love the package.
It would be very useful to be able to construct a DateTimeRange from a single string (e.g. from the string representation), as in:
dtr = DateTimeRange("2008-01-03T06:55:29 - 2008-01-03T07:55:29")