Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 2464 | |
| 2465 | // Format implements the NodeFormatter interface. |
| 2466 | func (d *DTimestampTZ) Format(ctx *FmtCtx) { |
| 2467 | f := ctx.flags |
| 2468 | bareStrings := f.HasFlags(FmtFlags(lex.EncBareStrings)) |
| 2469 | if !bareStrings { |
| 2470 | ctx.WriteByte('\'') |
| 2471 | } |
| 2472 | ctx.WriteString(d.Time.Format(TimestampOutputFormat)) |
| 2473 | if !bareStrings { |
| 2474 | ctx.WriteByte('\'') |
| 2475 | } |
| 2476 | } |
| 2477 | |
| 2478 | // Size implements the Datum interface. |
| 2479 | func (d *DTimestampTZ) Size() uintptr { |