Round returns a new DTime to the specified precision.
(precision time.Duration)
| 1958 | |
| 1959 | // Round returns a new DTime to the specified precision. |
| 1960 | func (d *DTime) Round(precision time.Duration) *DTime { |
| 1961 | return MakeDTime(timeofday.TimeOfDay(*d).Round(precision)) |
| 1962 | } |
| 1963 | |
| 1964 | // Next implements the Datum interface. |
| 1965 | func (d *DTime) Next(_ *EvalContext) (Datum, bool) { |
no test coverage detected