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

Function MakeDTime

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

MakeDTime creates a DTime from a TimeOfDay.

(t timeofday.TimeOfDay)

Source from the content-addressed store, hash-verified

851
852// MakeDTime creates a DTime from a TimeOfDay.
853func MakeDTime(t timeofday.TimeOfDay) *DTime {
854 d := DTime(t)
855 return &d
856}
857
858// ParseDTime parses and returns the *DTime Datum value represented by the
859// provided string, or an error if parsing is unsuccessful.

Callers 3

ParseDTimeFunction · 0.85
RoundMethod · 0.85
SampleDatumFunction · 0.85

Calls 1

DTimeTypeAlias · 0.85

Tested by

no test coverage detected