Round returns a new DTime to the specified precision.
(precision time.Duration)
| 890 | |
| 891 | // Round returns a new DTime to the specified precision. |
| 892 | func (d *DTime) Round(precision time.Duration) *DTime { |
| 893 | return MakeDTime(timeofday.TimeOfDay(*d).Round(precision)) |
| 894 | } |
| 895 | |
| 896 | // AmbiguousFormat implements the Datum interface. |
| 897 | func (*DTime) AmbiguousFormat() bool { return true } |
no test coverage detected