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

Function MakeTimeTZ

pkg/util/timetz/timetz.go:59–61  ·  view source on GitHub ↗

MakeTimeTZ creates a TimeTZ from a TimeOfDay and offset.

(t timeofday.TimeOfDay, offsetSecs int32)

Source from the content-addressed store, hash-verified

57
58// MakeTimeTZ creates a TimeTZ from a TimeOfDay and offset.
59func MakeTimeTZ(t timeofday.TimeOfDay, offsetSecs int32) TimeTZ {
60 return TimeTZ{TimeOfDay: t, OffsetSecs: offsetSecs}
61}
62
63// MakeTimeTZFromLocation creates a TimeTZ from a TimeOfDay and time.Location.
64func MakeTimeTZFromLocation(t timeofday.TimeOfDay, loc *time.Location) TimeTZ {

Callers 4

NewDTimeTZFromOffsetFunction · 0.92
ParseTimeTZFunction · 0.70
RoundMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…