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

Function DecodeTimeValue

pkg/util/encoding/encoding.go:2135–2141  ·  view source on GitHub ↗

DecodeTimeValue decodes a value encoded by EncodeTimeValue.

(b []byte)

Source from the content-addressed store, hash-verified

2133
2134// DecodeTimeValue decodes a value encoded by EncodeTimeValue.
2135func DecodeTimeValue(b []byte) (remaining []byte, t time.Time, err error) {
2136 b, err = decodeValueTypeAssert(b, Time)
2137 if err != nil {
2138 return b, time.Time{}, err
2139 }
2140 return DecodeUntaggedTimeValue(b)
2141}
2142
2143// DecodeUntaggedTimeValue decodes a value encoded by EncodeUntaggedTimeValue.
2144func DecodeUntaggedTimeValue(b []byte) (remaining []byte, t time.Time, err error) {

Callers 1

PrettyPrintValueEncodedFunction · 0.85

Calls 2

decodeValueTypeAssertFunction · 0.85
DecodeUntaggedTimeValueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…