Since returns the nanoseconds that have passed since this timestamp. This function can overflow.
()
| 190 | |
| 191 | // Since returns the nanoseconds that have passed since this timestamp. This function can overflow. |
| 192 | func (t FeedTimestamp) Since() int64 { |
| 193 | return time.Now().UnixNano() - int64(t) |
| 194 | } |
| 195 | |
| 196 | // OlderThan returns true if the timestamp is older than the given duration. |
| 197 | func (t FeedTimestamp) OlderThan(duration time.Duration) bool { |
no outgoing calls