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

Function NewDTimeTZFromOffset

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

NewDTimeTZFromOffset creates a DTimeTZ from a TimeOfDay and offset.

(t timeofday.TimeOfDay, offsetSecs int32)

Source from the content-addressed store, hash-verified

2036
2037// NewDTimeTZFromOffset creates a DTimeTZ from a TimeOfDay and offset.
2038func NewDTimeTZFromOffset(t timeofday.TimeOfDay, offsetSecs int32) *DTimeTZ {
2039 return &DTimeTZ{timetz.MakeTimeTZ(t, offsetSecs)}
2040}
2041
2042// NewDTimeTZFromLocation creates a DTimeTZ from a TimeOfDay and time.Location.
2043func NewDTimeTZFromLocation(t timeofday.TimeOfDay, loc *time.Location) *DTimeTZ {

Callers 5

datum.goFile · 0.85
PrevMethod · 0.85
NextMethod · 0.85
eval.goFile · 0.85
SampleDatumFunction · 0.85

Calls 1

MakeTimeTZFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…