MCPcopy Create free account
hub / github.com/bradfitz/go-sql-test / parseTs

Function parseTs

src/github.com/lib/pq/encode.go:186–274  ·  view source on GitHub ↗

This is a time function specific to the Postgres default DateStyle setting ("ISO, MDY"), the only one we currently support. This accounts for the discrepancies between the parsing available with time.Parse and the Postgres date formatting quirks.

(currentLocation *time.Location, str string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

tryParseFunction · 0.85
decodeFunction · 0.85

Calls 4

mustAtoiFunction · 0.85
expectFunction · 0.85
errorfFunction · 0.85
DateMethod · 0.80

Tested by 1

tryParseFunction · 0.68