Time returns the time.Time value for a TimestampBound. Returns zero time for non-timestamp bounds.
()
| 213 | // Time returns the time.Time value for a TimestampBound. |
| 214 | // Returns zero time for non-timestamp bounds. |
| 215 | func (tb TemporalBound) Time() time.Time { |
| 216 | if tb.Type != TimestampBound { |
| 217 | return time.Time{} |
| 218 | } |
| 219 | return time.Unix(0, tb.Timestamp) |
| 220 | } |
| 221 | |
| 222 | // Date creates a time.Time for the given year, month, and day at midnight. |
| 223 | // Uses the default timezone (UTC unless changed via SetDefaultTimezone). |
no outgoing calls