MakeDuration returns a Duration rounded to the nearest microsecond.
(nanos, days, months int64)
| 112 | |
| 113 | // MakeDuration returns a Duration rounded to the nearest microsecond. |
| 114 | func MakeDuration(nanos, days, months int64) Duration { |
| 115 | return Duration{ |
| 116 | Months: months, |
| 117 | Days: days, |
| 118 | nanos: rounded(nanos), |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | // MakeNormalizedDuration returns a normalized Duration. |
| 123 | func MakeNormalizedDuration(nanos, days, months int64) Duration { |
no test coverage detected