MCPcopy Create free account
hub / github.com/lib/pq / FormatTimestamp

Function FormatTimestamp

encode.go:341–343  ·  view source on GitHub ↗

FormatTimestamp formats t into Postgres' text format for timestamps.

(t time.Time)

Source from the content-addressed store, hash-verified

339
340// FormatTimestamp formats t into Postgres' text format for timestamps.
341func 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.

Callers 1

formatTSFunction · 0.85

Calls 1

FormatFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…