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

Function MustMakeDTimestampTZ

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

MustMakeDTimestampTZ wraps MakeDTimestampTZ but panics if there is an error. This is intended for testing applications only.

(t time.Time, precision time.Duration)

Source from the content-addressed store, hash-verified

2910// MustMakeDTimestampTZ wraps MakeDTimestampTZ but panics if there is an error.
2911// This is intended for testing applications only.
2912func MustMakeDTimestampTZ(t time.Time, precision time.Duration) *DTimestampTZ {
2913 ret, err := MakeDTimestampTZ(t, precision)
2914 if err != nil {
2915 panic(err)
2916 }
2917 return ret
2918}
2919
2920// MakeDTimestampTZFromDate creates a DTimestampTZ from a DDate.
2921// This will be equivalent to the midnight of the given zone.

Callers 1

SampleDatumFunction · 0.85

Calls 1

MakeDTimestampTZFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…