Mul returns a Duration representing a time length of d*x.
(x int64)
| 499 | |
| 500 | // Mul returns a Duration representing a time length of d*x. |
| 501 | func (d Duration) Mul(x int64) Duration { |
| 502 | return MakeDuration(d.nanos*x, d.Days*x, d.Months*x) |
| 503 | } |
| 504 | |
| 505 | // Div returns a Duration representing a time length of d/x. |
| 506 | func (d Duration) Div(x int64) Duration { |
no test coverage detected