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

Method Add

pkg/util/duration/duration.go:466–468  ·  view source on GitHub ↗

Add returns a Duration representing a time length of d+x.

(x Duration)

Source from the content-addressed store, hash-verified

464
465// Add returns a Duration representing a time length of d+x.
466func (d Duration) Add(x Duration) Duration {
467 return MakeDuration(d.nanos+x.nanos, d.Days+x.Days, d.Months+x.Months)
468}
469
470// Sub returns a Duration representing a time length of d-x.
471func (d Duration) Sub(x Duration) Duration {

Callers 3

sqlStdToDurationFunction · 0.95
iso8601ToDurationFunction · 0.95
parseDurationFunction · 0.95

Calls 1

MakeDurationFunction · 0.85

Tested by

no test coverage detected