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

Method Round

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

Round returns a new DTimestamp to the specified precision.

(precision time.Duration)

Source from the content-addressed store, hash-verified

1033
1034// Round returns a new DTimestamp to the specified precision.
1035func (d *DTimestamp) Round(precision time.Duration) (*DTimestamp, error) {
1036 return MakeDTimestamp(d.Time, precision)
1037}
1038
1039// ResolvedType implements the TypedExpr interface.
1040func (*DTimestamp) ResolvedType() *types.T {

Callers

nothing calls this directly

Calls 1

MakeDTimestampFunction · 0.85

Tested by

no test coverage detected