EncodeTimeDescending is the descending version of EncodeTimeAscending.
(b []byte, t time.Time)
| 1212 | |
| 1213 | // EncodeTimeDescending is the descending version of EncodeTimeAscending. |
| 1214 | func EncodeTimeDescending(b []byte, t time.Time) []byte { |
| 1215 | return encodeTime(b, ^t.Unix(), ^int64(t.Nanosecond())) |
| 1216 | } |
| 1217 | |
| 1218 | func encodeTime(b []byte, unix, nanos int64) []byte { |
| 1219 | // Read the unix absolute time. This is the absolute time and is |
nothing calls this directly
no test coverage detected
searching dependent graphs…