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

Function EncodeTimeDescending

pkg/util/encoding/encoding.go:903–905  ·  view source on GitHub ↗

EncodeTimeDescending is the descending version of EncodeTimeAscending.

(b []byte, t time.Time)

Source from the content-addressed store, hash-verified

901
902// EncodeTimeDescending is the descending version of EncodeTimeAscending.
903func EncodeTimeDescending(b []byte, t time.Time) []byte {
904 return encodeTime(b, ^t.Unix(), ^int64(t.Nanosecond()))
905}
906
907func encodeTime(b []byte, unix, nanos int64) []byte {
908 // Read the unix absolute time. This is the absolute time and is

Callers

nothing calls this directly

Calls 1

encodeTimeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…