Sub returns a Duration representing a time length of d-x.
(x Duration)
| 469 | |
| 470 | // Sub returns a Duration representing a time length of d-x. |
| 471 | func (d Duration) Sub(x Duration) Duration { |
| 472 | return MakeDuration(d.nanos-x.nanos, d.Days-x.Days, d.Months-x.Months) |
| 473 | } |
| 474 | |
| 475 | // Mul returns a Duration representing a time length of d*x. |
| 476 | func (d Duration) Mul(x int64) Duration { |
no test coverage detected