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

Function NewDTimeTZFromTime

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

NewDTimeTZFromTime creates a DTimeTZ from time.Time.

(t time.Time)

Source from the content-addressed store, hash-verified

2031
2032// NewDTimeTZFromTime creates a DTimeTZ from time.Time.
2033func NewDTimeTZFromTime(t time.Time) *DTimeTZ {
2034 return &DTimeTZ{timetz.MakeTimeTZFromTime(t)}
2035}
2036
2037// NewDTimeTZFromOffset creates a DTimeTZ from a TimeOfDay and offset.
2038func NewDTimeTZFromOffset(t timeofday.TimeOfDay, offsetSecs int32) *DTimeTZ {

Callers 2

GetTxnTimeMethod · 0.85
PerformCastFunction · 0.85

Calls 1

MakeTimeTZFromTimeFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…