Sub returns a Duration representing a time length of d-x.
(x Duration)
| 806 | |
| 807 | // Sub returns a Duration representing a time length of d-x. |
| 808 | func (d Duration) Sub(x Duration) Duration { |
| 809 | return MakeDuration(d.nanos-x.nanos, d.Days-x.Days, d.Months-x.Months) |
| 810 | } |
| 811 | |
| 812 | // Mul returns a Duration representing a time length of d*x. |
| 813 | func (d Duration) Mul(x int64) Duration { |
no test coverage detected