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

Function EncodeUntaggedTimeTZValue

pkg/util/encoding/encoding.go:2681–2684  ·  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

2679// EncodeUntaggedTimeTZValue encodes a time.Time value, appends it to the supplied buffer,
2680// and returns the final buffer.
2681func EncodeUntaggedTimeTZValue(appendTo []byte, t timetz.TimeTZ) []byte {
2682 appendTo = EncodeNonsortingStdlibVarint(appendTo, int64(t.TimeOfDay))
2683 return EncodeNonsortingStdlibVarint(appendTo, int64(t.OffsetSecs))
2684}
2685
2686// EncodeVoidValue encodes a void with its value tag, appends it to
2687// 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…