DecodeTimeAscending decodes a time.Time value which was encoded using EncodeTime. The remainder of the input buffer and the decoded time.Time are returned.
(b []byte)
| 917 | // EncodeTime. The remainder of the input buffer and the decoded |
| 918 | // time.Time are returned. |
| 919 | func DecodeTimeAscending(b []byte) ([]byte, time.Time, error) { |
| 920 | b, sec, nsec, err := decodeTime(b) |
| 921 | if err != nil { |
| 922 | return b, time.Time{}, err |
| 923 | } |
| 924 | return b, timeutil.Unix(sec, nsec), nil |
| 925 | } |
| 926 | |
| 927 | // DecodeTimeDescending is the descending version of DecodeTimeAscending. |
| 928 | func DecodeTimeDescending(b []byte) ([]byte, time.Time, error) { |
no test coverage detected
searching dependent graphs…