Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 2388 | |
| 2389 | // Format implements the NodeFormatter interface. |
| 2390 | func (d *DTime) Format(ctx *FmtCtx) { |
| 2391 | f := ctx.flags |
| 2392 | bareStrings := f.HasFlags(FmtFlags(lexbase.EncBareStrings)) |
| 2393 | if !bareStrings { |
| 2394 | ctx.WriteByte('\'') |
| 2395 | } |
| 2396 | ctx.Write(PGWireFormatTime(timeofday.TimeOfDay(*d), ctx.scratch[:0])) |
| 2397 | if !bareStrings { |
| 2398 | ctx.WriteByte('\'') |
| 2399 | } |
| 2400 | } |
| 2401 | |
| 2402 | // Size implements the Datum interface. |
| 2403 | func (d *DTime) Size() uintptr { |
nothing calls this directly
no test coverage detected