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

Function MakeDTimestampTZ

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

MakeDTimestampTZ creates a DTimestampTZ with specified precision.

(t time.Time, precision time.Duration)

Source from the content-addressed store, hash-verified

2348
2349// MakeDTimestampTZ creates a DTimestampTZ with specified precision.
2350func MakeDTimestampTZ(t time.Time, precision time.Duration) *DTimestampTZ {
2351 return &DTimestampTZ{Time: t.Round(precision)}
2352}
2353
2354// MakeDTimestampTZFromDate creates a DTimestampTZ from a DDate.
2355// This will be equivalent to the midnight of the given zone.

Callers 7

MakeDTimestampTZFromDateFunction · 0.85
ParseDTimestampTZFunction · 0.85
RoundMethod · 0.85
eval.goFile · 0.85
GetTxnTimestampMethod · 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…