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

Function DecodeDuration

pkg/util/duration/duration.go:107–113  ·  view source on GitHub ↗

DecodeDuration returns a Duration without rounding nanos.

(months, days, nanos int64)

Source from the content-addressed store, hash-verified

105
106// DecodeDuration returns a Duration without rounding nanos.
107func 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.
116func (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…