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

Method Round

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

Round returns a new DTimestampTZ to the specified precision.

(precision time.Duration)

Source from the content-addressed store, hash-verified

2994
2995// Round returns a new DTimestampTZ to the specified precision.
2996func (d *DTimestampTZ) Round(precision time.Duration) (*DTimestampTZ, error) {
2997 return MakeDTimestampTZ(d.Time, precision)
2998}
2999
3000// ResolvedType implements the TypedExpr interface.
3001func (*DTimestampTZ) ResolvedType() *types.T {

Callers

nothing calls this directly

Calls 1

MakeDTimestampTZFunction · 0.85

Tested by

no test coverage detected