NewPointInterval creates an interval representing a single point in time.
(t time.Time)
| 337 | |
| 338 | // NewPointInterval creates an interval representing a single point in time. |
| 339 | func NewPointInterval(t time.Time) Interval { |
| 340 | bound := NewTimestampBound(t) |
| 341 | return Interval{Start: bound, End: bound} |
| 342 | } |
| 343 | |
| 344 | // EternalInterval returns an interval representing all time (negative infinity to positive infinity). |
| 345 | // This is used for facts without temporal annotations. |