Add returns a Duration representing a time length of d+x.
(x Duration)
| 801 | |
| 802 | // Add returns a Duration representing a time length of d+x. |
| 803 | func (d Duration) Add(x Duration) Duration { |
| 804 | return MakeDuration(d.nanos+x.nanos, d.Days+x.Days, d.Months+x.Months) |
| 805 | } |
| 806 | |
| 807 | // Sub returns a Duration representing a time length of d-x. |
| 808 | func (d Duration) Sub(x Duration) Duration { |
no test coverage detected