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

Method Round

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

Round returns a new DTimestamp to the specified precision.

(precision time.Duration)

Source from the content-addressed store, hash-verified

2189
2190// Round returns a new DTimestamp to the specified precision.
2191func (d *DTimestamp) Round(precision time.Duration) *DTimestamp {
2192 return MakeDTimestamp(d.Time, precision)
2193}
2194
2195// ResolvedType implements the TypedExpr interface.
2196func (*DTimestamp) ResolvedType() *types.T {

Callers

nothing calls this directly

Calls 1

MakeDTimestampFunction · 0.85

Tested by

no test coverage detected