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

Function DecodeTimeDescending

pkg/util/encoding/encoding.go:928–934  ·  view source on GitHub ↗

DecodeTimeDescending is the descending version of DecodeTimeAscending.

(b []byte)

Source from the content-addressed store, hash-verified

926
927// DecodeTimeDescending is the descending version of DecodeTimeAscending.
928func DecodeTimeDescending(b []byte) ([]byte, time.Time, error) {
929 b, sec, nsec, err := decodeTime(b)
930 if err != nil {
931 return b, time.Time{}, err
932 }
933 return b, timeutil.Unix(^sec, ^nsec), nil
934}
935
936func decodeTime(b []byte) (r []byte, sec int64, nsec int64, err error) {
937 if PeekType(b) != Time {

Callers 1

prettyPrintFirstValueFunction · 0.85

Calls 2

UnixFunction · 0.92
decodeTimeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…