DecodeTimeValue decodes a value encoded by EncodeTimeValue.
(b []byte)
| 2975 | |
| 2976 | // DecodeTimeValue decodes a value encoded by EncodeTimeValue. |
| 2977 | func DecodeTimeValue(b []byte) (remaining []byte, t time.Time, err error) { |
| 2978 | b, err = decodeValueTypeAssert(b, Time) |
| 2979 | if err != nil { |
| 2980 | return b, time.Time{}, err |
| 2981 | } |
| 2982 | return DecodeUntaggedTimeValue(b) |
| 2983 | } |
| 2984 | |
| 2985 | // DecodeUntaggedTimeValue decodes a value encoded by EncodeUntaggedTimeValue. |
| 2986 | func DecodeUntaggedTimeValue(b []byte) (remaining []byte, t time.Time, err error) { |
no test coverage detected
searching dependent graphs…