FormatTimestamp formats t into Postgres' text format for timestamps.
(t time.Time)
| 339 | |
| 340 | // FormatTimestamp formats t into Postgres' text format for timestamps. |
| 341 | func FormatTimestamp(t time.Time) []byte { |
| 342 | return pqtime.Format(t) |
| 343 | } |
| 344 | |
| 345 | // Parse a bytea value received from the server. Both "hex" and the legacy |
| 346 | // "escape" format are supported. |