i have many dates that i need to check.
For example:
1 - Start: 1387267200, End: 1387274400
2 - Start: 1387270800, End: 1387275000
3 - Start: 1387250200, End: 1387273000
4 - Start: 1387285200, End: 1387288800
What i need is to calculate foreach overlaps the minimum start date and maximum end date.
For the example above, what the algor has to give in output is:
Start1: 1387250200 -> End1: 1387275000.
Start2: 1387285200 -> End2: 1387288800.
How can i do it?
Thanks!
This script looks for overlapped intervals and gets new ones with minimum start date and maximum end date:
Output: