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

Function MakeDTime

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

MakeDTime creates a DTime from a TimeOfDay.

(t timeofday.TimeOfDay)

Source from the content-addressed store, hash-verified

2280
2281// MakeDTime creates a DTime from a TimeOfDay.
2282func MakeDTime(t timeofday.TimeOfDay) *DTime {
2283 d := DTime(t)
2284 return &d
2285}
2286
2287// AsDTime attempts to retrieve a DTime from an Expr, returning a DTimestamp and
2288// a flag signifying whether the assertion was successful. The function should

Callers 4

ParseDTimeFunction · 0.85
RoundMethod · 0.85
datum.goFile · 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…