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

Function NewDTimeTZ

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

NewDTimeTZ creates a DTimeTZ from a timetz.TimeTZ.

(t timetz.TimeTZ)

Source from the content-addressed store, hash-verified

2419
2420// NewDTimeTZ creates a DTimeTZ from a timetz.TimeTZ.
2421func NewDTimeTZ(t timetz.TimeTZ) *DTimeTZ {
2422 return &DTimeTZ{t}
2423}
2424
2425// NewDTimeTZFromTime creates a DTimeTZ from time.Time.
2426func NewDTimeTZFromTime(t time.Time) *DTimeTZ {

Callers 2

ParseDTimeTZFunction · 0.85
RoundMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…