Efficient date range overlap calculation?
Efficient date range overlap calculation? Question: I have two date ranges where each range is determined by a start and end date (obviously, datetime.date instances). The two ranges can overlap or not. I need the number of days of the overlap. Of course I can pre-fill two sets with all dates within both ranges and …
Total answers: 10