MCPcopy Create free account
hub / github.com/pingcap/tidb / GetTime

Method GetTime

pkg/types/json_binary.go:244–246  ·  view source on GitHub ↗

GetTime gets the time value with default fsp Deprecated: use GetTimeWithFsp instead. The `BinaryJSON` doesn't contain the fsp information, so the caller should always provide the fsp.

()

Source from the content-addressed store, hash-verified

242// Deprecated: use GetTimeWithFsp instead. The `BinaryJSON` doesn't contain the fsp information, so the caller
243// should always provide the fsp.
244func (bj BinaryJSON) GetTime() Time {
245 return bj.GetTimeWithFsp(DefaultFsp)
246}
247
248// GetTimeWithFsp gets the time value with given fsp
249func (bj BinaryJSON) GetTimeWithFsp(fsp int) Time {

Callers 6

marshalToMethod · 0.95
GetValueMethod · 0.95
CompareBinaryJSONFunction · 0.45
RowToTTLTaskFunction · 0.45
RowToTableStatusFunction · 0.45
ListMethod · 0.45

Calls 1

GetTimeWithFspMethod · 0.95

Tested by

no test coverage detected