DateTimeRange is a Python library to handle a time range. e.g. check whether a time is within the time range, get the intersection of time ranges, truncate a time range, iterate through a time range, and so forth.
The current implementation of from_range_text() allows to define the separator, but has hardcoded spaces around them. This is not always the case (see as an example, the STAC api specs datetime uses ).
Suggesting to remove the hardcoded spaces and make them configurable through the separator argument.
The current implementation of
from_range_text()
allows to define the separator, but has hardcoded spaces around them. This is not always the case (see as an example, the STAC api specs datetime uses ).Suggesting to remove the hardcoded spaces and make them configurable through the
separator
argument.