EncodeUntaggedTimeValue encodes a time.Time value, appends it to the supplied buffer, and returns the final buffer.
(appendTo []byte, t time.Time)
| 1903 | // EncodeUntaggedTimeValue encodes a time.Time value, appends it to the supplied buffer, |
| 1904 | // and returns the final buffer. |
| 1905 | func EncodeUntaggedTimeValue(appendTo []byte, t time.Time) []byte { |
| 1906 | appendTo = EncodeNonsortingStdlibVarint(appendTo, t.Unix()) |
| 1907 | return EncodeNonsortingStdlibVarint(appendTo, int64(t.Nanosecond())) |
| 1908 | } |
| 1909 | |
| 1910 | // EncodeTimeTZValue encodes a timetz.TimeTZ value with its value tag, appends it to |
| 1911 | // the supplied buffer, and returns the final buffer. |
no test coverage detected
searching dependent graphs…