Date interval operations
Trivia - Off-by-one errors and Interval notations Dumping some info about working with intervals with a focus in implementation in Go. Date intervals in particular, and one dimensional integer intervals in general (if you want to be really formal). We will denote an interval as [a .. b] that represents all the numbers i such that a ≤ i ≤ b. In some cases it is actually neater to work with “half-open” intervals, which are denoted as [a ....