Add returns a Duration representing a time length of d+x.
(x Duration)
| 464 | |
| 465 | // Add returns a Duration representing a time length of d+x. |
| 466 | func (d Duration) Add(x Duration) Duration { |
| 467 | return MakeDuration(d.nanos+x.nanos, d.Days+x.Days, d.Months+x.Months) |
| 468 | } |
| 469 | |
| 470 | // Sub returns a Duration representing a time length of d-x. |
| 471 | func (d Duration) Sub(x Duration) Duration { |
no test coverage detected