DateInterval creates an interval from two dates (year, month, day). This is the most concise way to create a date-based interval.
(startYear int, startMonth time.Month, startDay int, endYear int, endMonth time.Month, endDay int)
| 271 | // DateInterval creates an interval from two dates (year, month, day). |
| 272 | // This is the most concise way to create a date-based interval. |
| 273 | func DateInterval(startYear int, startMonth time.Month, startDay int, endYear int, endMonth time.Month, endDay int) Interval { |
| 274 | return TimeInterval( |
| 275 | Date(startYear, startMonth, startDay), |
| 276 | Date(endYear, endMonth, endDay), |
| 277 | ) |
| 278 | } |
| 279 | |
| 280 | // String returns a string representation of the temporal bound. |
| 281 | func (tb TemporalBound) String() string { |