MCPcopy Create free account
hub / github.com/dolthub/doltgresql / Round

Method Round

postgres/parser/sem/tree/datum.go:1112–1114  ·  view source on GitHub ↗

Round returns a new DTimestampTZ to the specified precision.

(precision time.Duration)

Source from the content-addressed store, hash-verified

1110
1111// Round returns a new DTimestampTZ to the specified precision.
1112func (d *DTimestampTZ) Round(precision time.Duration) (*DTimestampTZ, error) {
1113 return MakeDTimestampTZ(d.Time, precision)
1114}
1115
1116// ResolvedType implements the TypedExpr interface.
1117func (*DTimestampTZ) ResolvedType() *types.T {

Callers

nothing calls this directly

Calls 1

MakeDTimestampTZFunction · 0.85

Tested by

no test coverage detected