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

Method Round

pkg/sql/sem/tree/datum.go:2104–2106  ·  view source on GitHub ↗

Round returns a new DTimeTZ to the specified precision.

(precision time.Duration)

Source from the content-addressed store, hash-verified

2102
2103// Round returns a new DTimeTZ to the specified precision.
2104func (d *DTimeTZ) Round(precision time.Duration) *DTimeTZ {
2105 return NewDTimeTZ(d.TimeTZ.Round(precision))
2106}
2107
2108// Min implements the Datum interface.
2109func (d *DTimeTZ) Min(_ *EvalContext) (Datum, bool) {

Callers

nothing calls this directly

Calls 2

NewDTimeTZFunction · 0.85
RoundMethod · 0.45

Tested by

no test coverage detected