Prev implements the Datum interface.
(_ *EvalContext)
| 2286 | |
| 2287 | // Prev implements the Datum interface. |
| 2288 | func (d *DTimestamp) Prev(_ *EvalContext) (Datum, bool) { |
| 2289 | return &DTimestamp{Time: d.Add(-time.Microsecond)}, true |
| 2290 | } |
| 2291 | |
| 2292 | // Next implements the Datum interface. |
| 2293 | func (d *DTimestamp) Next(_ *EvalContext) (Datum, bool) { |