Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 898 | |
| 899 | // Format implements the NodeFormatter interface. |
| 900 | func (d *DTime) Format(ctx *FmtCtx) { |
| 901 | f := ctx.flags |
| 902 | bareStrings := f.HasFlags(FmtFlags(lex.EncBareStrings)) |
| 903 | if !bareStrings { |
| 904 | ctx.WriteByte('\'') |
| 905 | } |
| 906 | ctx.WriteString(timeofday.TimeOfDay(*d).String()) |
| 907 | if !bareStrings { |
| 908 | ctx.WriteByte('\'') |
| 909 | } |
| 910 | } |
| 911 | |
| 912 | // Size implements the Datum interface. |
| 913 | func (d *DTime) Size() uintptr { |
nothing calls this directly
no test coverage detected