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

Method Round

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

Round returns a new DTimestamp to the specified precision.

(precision time.Duration)

Source from the content-addressed store, hash-verified

2671
2672// Round returns a new DTimestamp to the specified precision.
2673func (d *DTimestamp) Round(precision time.Duration) (*DTimestamp, error) {
2674 return MakeDTimestamp(d.Time, precision)
2675}
2676
2677// ResolvedType implements the TypedExpr interface.
2678func (*DTimestamp) ResolvedType() *types.T {

Callers

nothing calls this directly

Calls 1

MakeDTimestampFunction · 0.85

Tested by

no test coverage detected