DecodeDuration returns a Duration without rounding nanos.
(months, days, nanos int64)
| 214 | |
| 215 | // DecodeDuration returns a Duration without rounding nanos. |
| 216 | func DecodeDuration(months, days, nanos int64) Duration { |
| 217 | return Duration{ |
| 218 | Months: months, |
| 219 | Days: days, |
| 220 | nanos: nanos, |
| 221 | } |
| 222 | } |
| 223 | |
| 224 | // Nanos returns the nanos of d. |
| 225 | func (d Duration) Nanos() int64 { |
no outgoing calls
no test coverage detected
searching dependent graphs…