MCPcopy Create free account
hub / github.com/apache/iotdb-client-go / convertToTimestamp

Function convertToTimestamp

client/utils.go:97–101  ·  view source on GitHub ↗
(timeValue int64, timeFactor int32)

Source from the content-addressed store, hash-verified

95}
96
97func convertToTimestamp(timeValue int64, timeFactor int32) time.Time {
98 millis := getMilliSecond(timeValue, timeFactor)
99 nanos := getNanoSecond(timeValue, timeFactor)
100 return time.Unix(millis/1e3, (millis%1e3)*1e6).Add(time.Duration(nanos) * time.Nanosecond)
101}
102
103func parseLongToDateWithPrecision(timestamp int64, zone *time.Location, precision string) string {
104 var divisor int64

Callers 3

GetCurrentRowTimeMethod · 0.85

Calls 2

getMilliSecondFunction · 0.85
getNanoSecondFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…