Add returns a Duration representing a time length of d+x.
(x Duration)
| 489 | |
| 490 | // Add returns a Duration representing a time length of d+x. |
| 491 | func (d Duration) Add(x Duration) Duration { |
| 492 | return MakeDuration(d.nanos+x.nanos, d.Days+x.Days, d.Months+x.Months) |
| 493 | } |
| 494 | |
| 495 | // Sub returns a Duration representing a time length of d-x. |
| 496 | func (d Duration) Sub(x Duration) Duration { |
no test coverage detected