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

Function MakeDTimestamp

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

MakeDTimestamp creates a DTimestamp with specified precision.

(t time.Time, precision time.Duration)

Source from the content-addressed store, hash-verified

2138
2139// MakeDTimestamp creates a DTimestamp with specified precision.
2140func MakeDTimestamp(t time.Time, precision time.Duration) *DTimestamp {
2141 return &DTimestamp{Time: t.Round(precision)}
2142}
2143
2144var dMinTimestamp = &DTimestamp{}
2145

Callers 8

ParseDTimestampFunction · 0.85
RoundMethod · 0.85
EvalAtTimeZoneMethod · 0.85
eval.goFile · 0.85
GetTxnTimestampNoZoneMethod · 0.85
PerformCastFunction · 0.85
SampleDatumFunction · 0.85

Calls 1

RoundMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…