NewTimestampBound creates a bound from a time.Time value.
(t time.Time)
| 167 | |
| 168 | // NewTimestampBound creates a bound from a time.Time value. |
| 169 | func NewTimestampBound(t time.Time) TemporalBound { |
| 170 | return TemporalBound{ |
| 171 | Type: TimestampBound, |
| 172 | Timestamp: t.UnixNano(), |
| 173 | } |
| 174 | } |
| 175 | |
| 176 | // NewDurationBound creates a bound from a time.Duration value. |
| 177 | func NewDurationBound(d time.Duration) TemporalBound { |
no outgoing calls