EncodeTimeAscending encodes a time value, appends it to the supplied buffer, and returns the final buffer. The encoding is guaranteed to be ordered Such that if t1.Before(t2) then after EncodeTime(b1, t1), and EncodeTime(b2, t2), Compare(b1, b2) < 0. The time zone offset not included in the encoding
(b []byte, t time.Time)
| 896 | // EncodeTime(b2, t2), Compare(b1, b2) < 0. The time zone offset not |
| 897 | // included in the encoding. |
| 898 | func EncodeTimeAscending(b []byte, t time.Time) []byte { |
| 899 | return encodeTime(b, t.Unix(), int64(t.Nanosecond())) |
| 900 | } |
| 901 | |
| 902 | // EncodeTimeDescending is the descending version of EncodeTimeAscending. |
| 903 | func EncodeTimeDescending(b []byte, t time.Time) []byte { |
nothing calls this directly
no test coverage detected
searching dependent graphs…