EpochMillisTimeEncoder serializes a time.Time to a floating-point number of milliseconds since the Unix epoch.
(t time.Time, enc PrimitiveArrayEncoder)
| 109 | // EpochMillisTimeEncoder serializes a time.Time to a floating-point number of |
| 110 | // milliseconds since the Unix epoch. |
| 111 | func EpochMillisTimeEncoder(t time.Time, enc PrimitiveArrayEncoder) { |
| 112 | nanos := t.UnixNano() |
| 113 | millis := float64(nanos) / float64(time.Millisecond) |
| 114 | enc.AppendFloat64(millis) |
| 115 | } |
| 116 | |
| 117 | // EpochNanosTimeEncoder serializes a time.Time to an integer number of |
| 118 | // nanoseconds since the Unix epoch. |
nothing calls this directly
no test coverage detected