MCPcopy Create free account
hub / github.com/bytebase/bytebase / formatTimestampTz

Function formatTimestampTz

backend/component/export/export.go:34–38  ·  view source on GitHub ↗
(ts *v1pb.RowValue_TimestampTZ)

Source from the content-addressed store, hash-verified

32}
33
34func formatTimestampTz(ts *v1pb.RowValue_TimestampTZ) string {
35 t := ts.GoogleTimestamp.AsTime()
36 z := time.FixedZone(ts.GetZone(), int(ts.GetOffset()))
37 return t.In(z).Format(timestampTzFormat)
38}

Callers 4

convertValueToBytesInSQLFunction · 0.85
convertValueToBytesInCSVFunction · 0.85
convertValueToJSONValueFunction · 0.85

Calls 2

GetZoneMethod · 0.80
GetOffsetMethod · 0.45

Tested by

no test coverage detected