MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / DecodeDuration

Function DecodeDuration

pkg/util/duration/duration.go:216–222  ·  view source on GitHub ↗

DecodeDuration returns a Duration without rounding nanos.

(months, days, nanos int64)

Source from the content-addressed store, hash-verified

214
215// DecodeDuration returns a Duration without rounding nanos.
216func 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.
225func (d Duration) Nanos() int64 {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…