Sub returns a Duration representing a time length of d-x.
(x Duration)
| 494 | |
| 495 | // Sub returns a Duration representing a time length of d-x. |
| 496 | func (d Duration) Sub(x Duration) Duration { |
| 497 | return MakeDuration(d.nanos-x.nanos, d.Days-x.Days, d.Months-x.Months) |
| 498 | } |
| 499 | |
| 500 | // Mul returns a Duration representing a time length of d*x. |
| 501 | func (d Duration) Mul(x int64) Duration { |
no test coverage detected