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

Function getTimePrecision

client/utils.go:62–73  ·  view source on GitHub ↗
(timeFactor int32)

Source from the content-addressed store, hash-verified

60}
61
62func getTimePrecision(timeFactor int32) (string, error) {
63 switch timeFactor {
64 case 1_000:
65 return MILLISECOND, nil
66 case 1_000_000:
67 return MICROSECOND, nil
68 case 1_000_000_000:
69 return NANOSECOND, nil
70 default:
71 return "", fmt.Errorf("unknown time factor: %v", timeFactor)
72 }
73}
74
75func formatDatetime(timeFormat, timePrecision string, timestamp int64, zone *time.Location) string {
76 switch timeFormat {

Callers 1

NewIoTDBRpcDataSetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…