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

Method Div

pkg/util/duration/duration.go:481–483  ·  view source on GitHub ↗

Div returns a Duration representing a time length of d/x.

(x int64)

Source from the content-addressed store, hash-verified

479
480// Div returns a Duration representing a time length of d/x.
481func (d Duration) Div(x int64) Duration {
482 return d.DivFloat(float64(x))
483}
484
485// MulFloat returns a Duration representing a time length of d*x.
486func (d Duration) MulFloat(x float64) Duration {

Callers 1

eval.goFile · 0.80

Calls 1

DivFloatMethod · 0.95

Tested by

no test coverage detected