Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 2115 | |
| 2116 | // Format implements the NodeFormatter interface. |
| 2117 | func (d *DTimeTZ) Format(ctx *FmtCtx) { |
| 2118 | f := ctx.flags |
| 2119 | bareStrings := f.HasFlags(FmtFlags(lex.EncBareStrings)) |
| 2120 | if !bareStrings { |
| 2121 | ctx.WriteByte('\'') |
| 2122 | } |
| 2123 | ctx.WriteString(d.TimeTZ.String()) |
| 2124 | if !bareStrings { |
| 2125 | ctx.WriteByte('\'') |
| 2126 | } |
| 2127 | } |
| 2128 | |
| 2129 | // Size implements the Datum interface. |
| 2130 | func (d *DTimeTZ) Size() uintptr { |