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

Function calcTimeDiff

tidbparser/dependency/types/mytime.go:138–158  ·  view source on GitHub ↗

calcTimeDiff calculates difference between two datetime values as seconds + microseconds. t1 and t2 should be TIME/DATE/DATETIME value. sign can be +1 or -1, and t2 is preprocessed with sign first.

(t1, t2 MysqlTime, sign int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

SubMethod · 0.85
AddMethod · 0.85
mixDateAndTimeFunction · 0.85
timestampDiffFunction · 0.85

Calls 8

calcDaynrFunction · 0.85
YearMethod · 0.80
MonthMethod · 0.80
DayMethod · 0.80
MicrosecondMethod · 0.80
HourMethod · 0.45
MinuteMethod · 0.45
SecondMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…