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

Method Round

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

Round returns a new DTimestampTZ to the specified precision.

(precision time.Duration)

Source from the content-addressed store, hash-verified

2406
2407// Round returns a new DTimestampTZ to the specified precision.
2408func (d *DTimestampTZ) Round(precision time.Duration) *DTimestampTZ {
2409 return MakeDTimestampTZ(d.Time, precision)
2410}
2411
2412// ResolvedType implements the TypedExpr interface.
2413func (*DTimestampTZ) ResolvedType() *types.T {

Callers

nothing calls this directly

Calls 1

MakeDTimestampTZFunction · 0.85

Tested by

no test coverage detected