MCPcopy Create free account
hub / github.com/dolthub/doltgresql / Mul

Method Mul

postgres/parser/duration/duration.go:501–503  ·  view source on GitHub ↗

Mul returns a Duration representing a time length of d*x.

(x int64)

Source from the content-addressed store, hash-verified

499
500// Mul returns a Duration representing a time length of d*x.
501func (d Duration) Mul(x int64) Duration {
502 return MakeDuration(d.nanos*x, d.Days*x, d.Months*x)
503}
504
505// Div returns a Duration representing a time length of d/x.
506func (d Duration) Div(x int64) Duration {

Callers 10

AsBigIntMethod · 0.80
EncodeBigIntMethod · 0.80
sqlStdToDurationFunction · 0.80
iso8601ToDurationFunction · 0.80
parseDurationFunction · 0.80
diffTimesFunction · 0.80
minus.goFile · 0.80
multiply.goFile · 0.80
ints.goFile · 0.80
PermutationsMethod · 0.80

Calls 1

MakeDurationFunction · 0.85

Tested by

no test coverage detected