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

Function MakeDTime

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

MakeDTime creates a DTime from a TimeOfDay.

(t timeofday.TimeOfDay)

Source from the content-addressed store, hash-verified

1911
1912// MakeDTime creates a DTime from a TimeOfDay.
1913func MakeDTime(t timeofday.TimeOfDay) *DTime {
1914 d := DTime(t)
1915 return &d
1916}
1917
1918// ParseDTime parses and returns the *DTime Datum value represented by the
1919// provided string, or an error if parsing is unsuccessful.

Callers 7

ParseDTimeFunction · 0.85
RoundMethod · 0.85
datum.goFile · 0.85
eval.goFile · 0.85
GetTxnTimeNoZoneMethod · 0.85
PerformCastFunction · 0.85
SampleDatumFunction · 0.85

Calls 1

DTimeTypeAlias · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…