EpochNanosTimeEncoder serializes a time.Time to an integer number of nanoseconds since the Unix epoch.
(t time.Time, enc PrimitiveArrayEncoder)
| 117 | // EpochNanosTimeEncoder serializes a time.Time to an integer number of |
| 118 | // nanoseconds since the Unix epoch. |
| 119 | func EpochNanosTimeEncoder(t time.Time, enc PrimitiveArrayEncoder) { |
| 120 | enc.AppendInt64(t.UnixNano()) |
| 121 | } |
| 122 | |
| 123 | func encodeTimeLayout(t time.Time, layout string, enc PrimitiveArrayEncoder) { |
| 124 | type appendTimeEncoder interface { |
nothing calls this directly
no test coverage detected