EncodeUntaggedTimeValue encodes a time.Time value, appends it to the supplied buffer, and returns the final buffer.
(appendTo []byte, t time.Time)
| 2665 | // EncodeUntaggedTimeValue encodes a time.Time value, appends it to the supplied buffer, |
| 2666 | // and returns the final buffer. |
| 2667 | func EncodeUntaggedTimeValue(appendTo []byte, t time.Time) []byte { |
| 2668 | appendTo = EncodeNonsortingStdlibVarint(appendTo, t.Unix()) |
| 2669 | return EncodeNonsortingStdlibVarint(appendTo, int64(t.Nanosecond())) |
| 2670 | } |
| 2671 | |
| 2672 | // EncodeTimeTZValue encodes a timetz.TimeTZ value with its value tag, appends it to |
| 2673 | // the supplied buffer, and returns the final buffer. |
no test coverage detected
searching dependent graphs…