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

Function TimestampDiff

tidbparser/dependency/types/time.go:526–528  ·  view source on GitHub ↗

TimestampDiff returns t2 - t1 where t1 and t2 are date or datetime expressions. The unit for the result (an integer) is given by the unit argument. The legal values for unit are "YEAR" "QUARTER" "MONTH" "DAY" "HOUR" "SECOND" and so on.

(unit string, t1 Time, t2 Time)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

timestampDiffFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…