MCPcopy
hub / github.com/uber-go/zap / RFC3339NanoTimeEncoder

Function RFC3339NanoTimeEncoder

zapcore/encoder.go:158–160  ·  view source on GitHub ↗

RFC3339NanoTimeEncoder serializes a time.Time to an RFC3339-formatted string with nanosecond precision. If enc supports AppendTimeLayout(t time.Time,layout string), it's used instead of appending a pre-formatted string value.

(t time.Time, enc PrimitiveArrayEncoder)

Source from the content-addressed store, hash-verified

156// If enc supports AppendTimeLayout(t time.Time,layout string), it's used
157// instead of appending a pre-formatted string value.
158func RFC3339NanoTimeEncoder(t time.Time, enc PrimitiveArrayEncoder) {
159 encodeTimeLayout(t, time.RFC3339Nano, enc)
160}
161
162// TimeEncoderOfLayout returns TimeEncoder which serializes a time.Time using
163// given layout.

Callers

nothing calls this directly

Calls 1

encodeTimeLayoutFunction · 0.85

Tested by

no test coverage detected