MCPcopy Create free account
hub / github.com/blastrain/vitess-sqlparser / ParseTime

Function ParseTime

tidbparser/dependency/types/time.go:1197–1199  ·  view source on GitHub ↗

ParseTime parses a formatted string with type tp and specific fsp. Type is TypeDatetime, TypeTimestamp and TypeDate. Fsp is in range [0, 6]. MySQL supports many valid datatime format, but still has some limitation. If delimiter exists, the date part and time part is separated by a space or T, other

(sc *stmtctx.StatementContext, str string, tp byte, fst int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 7

StrToDateTimeFunction · 0.85
convertToMysqlTimeMethod · 0.85
CompareStringMethod · 0.85
ParseDatetimeFunction · 0.85
ParseTimestampFunction · 0.85
ParseDateFunction · 0.85

Calls 1

parseTimeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…