Closed 4l1fe closed 1 year ago
DateTimeRange supported reverse traversing range as follows:
start = datetime.now(timezone.utc)
end = start + timedelta(days=60)
dr = DateTimeRange(end, start)
dr.range(relativedelta(days=-7))
However, this is not correctly worked at DateTimeRange<2. You can use that DateTimeRange 2.0.0 or newer.
That's great. I tested it out with version 2.0
and it works.
Good job! 👍🏻
Hey. I'm looking for a way to create a range where a few points left that are computed starting from an end datetime, not start datetime.
Something like this
Now, obviously, i get the error
Is there a workaround for such the case? What do you think about implementing the substraction from
end_datetime
?