DecodeDuration returns a Duration without rounding nanos.
(months, days, nanos int64)
| 105 | |
| 106 | // DecodeDuration returns a Duration without rounding nanos. |
| 107 | func DecodeDuration(months, days, nanos int64) Duration { |
| 108 | return Duration{ |
| 109 | Months: months, |
| 110 | Days: days, |
| 111 | nanos: nanos, |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | // Nanos returns the nanos of d. |
| 116 | func (d Duration) Nanos() int64 { |
no outgoing calls
no test coverage detected
searching dependent graphs…