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

Function EncodeUntaggedTimeTZValue

pkg/util/encoding/encoding.go:1919–1922  ·  view source on GitHub ↗

EncodeUntaggedTimeTZValue encodes a time.Time value, appends it to the supplied buffer, and returns the final buffer.

(appendTo []byte, t timetz.TimeTZ)

Source from the content-addressed store, hash-verified

1917// EncodeUntaggedTimeTZValue encodes a time.Time value, appends it to the supplied buffer,
1918// and returns the final buffer.
1919func EncodeUntaggedTimeTZValue(appendTo []byte, t timetz.TimeTZ) []byte {
1920 appendTo = EncodeNonsortingStdlibVarint(appendTo, int64(t.TimeOfDay))
1921 return EncodeNonsortingStdlibVarint(appendTo, int64(t.OffsetSecs))
1922}
1923
1924// EncodeDecimalValue encodes an apd.Decimal value with its value tag, appends
1925// it to the supplied buffer, and returns the final buffer.

Callers 1

EncodeTimeTZValueFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…