MCPcopy Create free account
hub / github.com/dolthub/doltgresql / currentDateAsPrefix

Function currentDateAsPrefix

postgres/parser/timetz/timetz.go:259–261  ·  view source on GitHub ↗

currentDateAsPrefix will allow the timetz value to have the current time zone rather than timezone of 1970-01-01 in cases of timezone undefined. Go uses location to define the timezone, which can differ in cases of standard vs daylight saving time.

()

Source from the content-addressed store, hash-verified

257// Go uses location to define the timezone, which can differ in cases of
258// standard vs daylight saving time.
259func currentDateAsPrefix() string {
260 return time.Now().Format("2006-01-02")
261}

Callers 2

ParseTimeTZFunction · 0.85
ReplaceLibPQTimePrefixFunction · 0.85

Calls 1

FormatMethod · 0.65

Tested by

no test coverage detected